mpegvideo_enc: use avcodec_free_context() instead of av_free()

This commit is contained in:
Anton Khirnov 2016-02-24 11:10:30 +01:00
parent 168a443d43
commit c80344d010
1 changed files with 1 additions and 2 deletions

View File

@ -1343,8 +1343,7 @@ static int estimate_best_b_count(MpegEncContext *s)
} }
} }
avcodec_close(c); avcodec_free_context(&c);
av_freep(&c);
return best_b_count; return best_b_count;
} }