]> git.videolan.org Git - x264.git/commit
Fix free callback, add x264_encoder_parameters function
authorJason Garrett-Glaser <darkshikari@gmail.com>
Sun, 10 Jan 2010 20:14:02 +0000 (15:14 -0500)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Thu, 14 Jan 2010 04:47:03 +0000 (23:47 -0500)
commitd260e6bf125e2a3b8541bf589c5d41094601fd21
tree0e38c438ce6fae1f439d9d437156df70187e3cf3
parent846694224797ade9fe3dc8861d68b56a95af6148
Fix free callback, add x264_encoder_parameters function
x264 would try to use the passed param struct after freeing if the param_free callback was set.
Probably didn't cause any issues, as probably no programs used the callback in this location yet.

A new x264_encoder_parameters function is now available in the API.
This function lets the calling application grab the current state of the encoder's parameters.
Use this in x264cli to ensure that the param struct used for set_param is updated with whatever changes x264_encoder_open has made to it.

Patch partially by Anton Mitrofanov <BugMaster@narod.ru>.
encoder/encoder.c
x264.c
x264.h