Module: libav Branch: master Commit: c80344d0101558098a6cd2ed5082ff5fda7ca18b
Author: Anton Khirnov <[email protected]> Committer: Anton Khirnov <[email protected]> Date: Wed Feb 24 11:10:30 2016 +0100 mpegvideo_enc: use avcodec_free_context() instead of av_free() --- 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; } _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
