diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2006-10-28 11:15:06 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2006-10-28 11:15:06 +0000 |
commit | ea7307df2097211ae1294ae5aa057f15a5134291 (patch) | |
tree | 3264905a316ec4fffc0540cfee833acf56196210 /libavcodec/mpegvideo.c | |
parent | 8cd68d805611c319ac0518769883ee2c9c75d211 (diff) | |
download | ffmpeg-ea7307df2097211ae1294ae5aa057f15a5134291.tar.gz |
use lambda/lmax instead of qscale/qmax as end check for vbv retry
Originally committed as revision 6822 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegvideo.c')
-rw-r--r-- | libavcodec/mpegvideo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index bc8ad7fb57..30aa86d6df 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -2535,7 +2535,7 @@ vbv_retry: RateControlContext *rcc= &s->rc_context; int max_size= rcc->buffer_index/3; - if(put_bits_count(&s->pb) > max_size && s->qscale < s->avctx->qmax){ + if(put_bits_count(&s->pb) > max_size && s->lambda < s->avctx->lmax){ s->next_lambda= FFMAX(s->lambda+1, s->lambda*(s->qscale+1) / s->qscale); s->mb_skipped = 0; //done in MPV_frame_start() if(s->pict_type==P_TYPE){ //done in encode_picture() so we must undo it |