mpegvideo_enc: use avcodec_free_context() instead of av_free()

pull/200/head
Anton Khirnov 9 years ago
parent 168a443d43
commit c80344d010
  1. 3
      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;
}

Loading…
Cancel
Save