summaryrefslogtreecommitdiffstats
path: root/libavcodec/mpegvideo_enc.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-05-22 14:10:49 +0200
committerAnton Khirnov <anton@khirnov.net>2011-07-10 17:06:22 +0200
commit0b950fe240936fa48fd41204bcfd04f35bbf39c3 (patch)
treeeea5c86302cedf4f9515f064901b6bc063442c0d /libavcodec/mpegvideo_enc.c
parent7f7dc4fb55904e7b51b78ebca746c6755fc9770c (diff)
downloadffmpeg-streaming-0b950fe240936fa48fd41204bcfd04f35bbf39c3.zip
ffmpeg-streaming-0b950fe240936fa48fd41204bcfd04f35bbf39c3.tar.gz
lavc: introduce avcodec_open2() as a replacement for avcodec_open().
Adds support for decoder-private options and makes setting other options simpler.
Diffstat (limited to 'libavcodec/mpegvideo_enc.c')
-rw-r--r--libavcodec/mpegvideo_enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c
index 73bcc5b..f298993 100644
--- a/libavcodec/mpegvideo_enc.c
+++ b/libavcodec/mpegvideo_enc.c
@@ -973,7 +973,7 @@ static int estimate_best_b_count(MpegEncContext *s){
c->time_base= s->avctx->time_base;
c->max_b_frames= s->max_b_frames;
- if (avcodec_open(c, codec) < 0)
+ if (avcodec_open2(c, codec, NULL) < 0)
return -1;
for(i=0; i<s->max_b_frames+2; i++){
OpenPOWER on IntegriCloud