Commit c80344d0 authored by Anton Khirnov's avatar Anton Khirnov

mpegvideo_enc: use avcodec_free_context() instead of av_free()

parent 168a443d
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment