diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2005-12-22 22:48:09 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2005-12-22 22:48:09 +0000 |
commit | 82b019cefd98be3cd778728ee718d40044b9e15d (patch) | |
tree | 77c6f5431fa9c5439c005e6e2eaae13b289452b7 /libavcodec/mpegvideo.c | |
parent | 50c6f6cd4c1754d52bd093f3a7bd7585b17547a0 (diff) | |
download | ffmpeg-82b019cefd98be3cd778728ee718d40044b9e15d.tar.gz |
better f_code guessing in 2nd pass
Originally committed as revision 4766 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegvideo.c')
-rw-r--r-- | libavcodec/mpegvideo.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 729cfdd89d..c9adcaa5b7 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -5298,9 +5298,10 @@ static void encode_picture(MpegEncContext *s, int picture_number) s->no_rounding ^= 1; } - if(s->flags & CODEC_FLAG_PASS2) + if(s->flags & CODEC_FLAG_PASS2){ estimate_qp(s, 1); - else if(!(s->flags & CODEC_FLAG_QSCALE)){ + ff_get_2pass_fcode(s); + }else if(!(s->flags & CODEC_FLAG_QSCALE)){ RateControlContext *rcc= &s->rc_context; if(s->pict_type==B_TYPE) |