You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avcodec/libx264: call x264_param_cleanup() if available
The documentation states it should be used to free any memory allocated by x264_param_parse(). Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -511,6 +511,10 @@ static av_cold int X264_close(AVCodecContext *avctx)
|
|||||||
av_freep(&x4->sei);
|
av_freep(&x4->sei);
|
||||||
av_freep(&x4->reordered_opaque);
|
av_freep(&x4->reordered_opaque);
|
||||||
|
|
||||||
|
#if X264_BUILD >= 161
|
||||||
|
x264_param_cleanup(&x4->params);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (x4->enc) {
|
if (x4->enc) {
|
||||||
x264_encoder_close(x4->enc);
|
x264_encoder_close(x4->enc);
|
||||||
x4->enc = NULL;
|
x4->enc = NULL;
|
||||||
|
Reference in New Issue
Block a user