diff options
author | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2016-04-11 16:02:08 +0100 |
---|---|---|
committer | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2016-04-11 16:02:16 +0100 |
commit | 95348174ef87b67f14609334ef177fe9e75c48c1 (patch) | |
tree | bd0567a2e2e74654c7c5f842cf0b3ff8ae2d9190 | |
parent | 6614214ece70f1d41d085d822ed02941601d6868 (diff) | |
parent | c80344d0101558098a6cd2ed5082ff5fda7ca18b (diff) | |
download | ffmpeg-95348174ef87b67f14609334ef177fe9e75c48c1.tar.gz |
Merge commit 'c80344d0101558098a6cd2ed5082ff5fda7ca18b'
* commit 'c80344d0101558098a6cd2ed5082ff5fda7ca18b':
mpegvideo_enc: use avcodec_free_context() instead of av_free()
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
-rw-r--r-- | libavcodec/mpegvideo_enc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index 297ff78840..f8de0281ff 100644 --- a/libavcodec/mpegvideo_enc.c +++ b/libavcodec/mpegvideo_enc.c @@ -1518,8 +1518,7 @@ static int estimate_best_b_count(MpegEncContext *s) } } - avcodec_close(c); - av_freep(&c); + avcodec_free_context(&c); return best_b_count; } |