[FFmpeg-cvslog] mpegvideo_enc: use avcodec_free_context() instead of av_free()
Anton Khirnov
git at videolan.org
Mon Apr 11 17:02:35 CEST 2016
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Wed Feb 24 11:10:30 2016 +0100| [c80344d0101558098a6cd2ed5082ff5fda7ca18b] | committer: Anton Khirnov
mpegvideo_enc: use avcodec_free_context() instead of av_free()
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c80344d0101558098a6cd2ed5082ff5fda7ca18b
---
libavcodec/mpegvideo_enc.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c
index d16e408..96f49ef 100644
--- a/libavcodec/mpegvideo_enc.c
+++ b/libavcodec/mpegvideo_enc.c
@@ -1343,8 +1343,7 @@ static int estimate_best_b_count(MpegEncContext *s)
}
}
- avcodec_close(c);
- av_freep(&c);
+ avcodec_free_context(&c);
return best_b_count;
}
More information about the ffmpeg-cvslog
mailing list