[Ffmpeg-cvslog] r6822 - trunk/libavcodec/mpegvideo.c

michael subversion
Sat Oct 28 13:15:07 CEST 2006


Author: michael
Date: Sat Oct 28 13:15:06 2006
New Revision: 6822

Modified:
   trunk/libavcodec/mpegvideo.c

Log:
use lambda/lmax instead of qscale/qmax as end check for vbv retry


Modified: trunk/libavcodec/mpegvideo.c
==============================================================================
--- trunk/libavcodec/mpegvideo.c	(original)
+++ trunk/libavcodec/mpegvideo.c	Sat Oct 28 13:15:06 2006
@@ -2535,7 +2535,7 @@
             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




More information about the ffmpeg-cvslog mailing list