mirror of https://git.ffmpeg.org/ffmpeg.git
mpegvideo_enc: use avcodec_free_context() instead of av_free()
This commit is contained in:
parent
168a443d43
commit
c80344d010
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue