diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2006-03-18 20:43:48 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2006-03-18 20:43:48 +0000 |
commit | 5fe4cf7b9f0fd68dfbc3ed62657bbb00c6fab834 (patch) | |
tree | 2964a3ee42e57bd3d8d47c9e7c339f5d1d142fb7 /libavcodec/ratecontrol.c | |
parent | 0adba3d88b0b343a41660f186e0259640cff5980 (diff) | |
download | ffmpeg-5fe4cf7b9f0fd68dfbc3ed62657bbb00c6fab834.tar.gz |
fix frametypes with xvid_rc
Originally committed as revision 5180 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ratecontrol.c')
-rw-r--r-- | libavcodec/ratecontrol.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/ratecontrol.c b/libavcodec/ratecontrol.c index a6f8036489..3ca6f9d157 100644 --- a/libavcodec/ratecontrol.c +++ b/libavcodec/ratecontrol.c @@ -117,6 +117,9 @@ int ff_rate_control_init(MpegEncContext *s) p= next; } + + if(init_pass2(s) < 0) return -1; + //FIXME maybe move to end if((s->flags&CODEC_FLAG_PASS2) && s->avctx->rc_strategy == FF_RC_STRATEGY_XVID) { #ifdef CONFIG_XVID @@ -126,8 +129,6 @@ int ff_rate_control_init(MpegEncContext *s) return -1; #endif } - - if(init_pass2(s) < 0) return -1; } if(!(s->flags&CODEC_FLAG_PASS2)){ |