Browse Source

mpegvideo_enc: use avcodec_free_context() instead of av_free()

tags/n3.1
Anton Khirnov 10 years ago
parent
commit
c80344d010
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      libavcodec/mpegvideo_enc.c

+ 1
- 2
libavcodec/mpegvideo_enc.c View File

@@ -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