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

michael subversion
Tue Oct 31 23:22:12 CET 2006


Author: michael
Date: Tue Oct 31 23:22:11 2006
New Revision: 6850

Modified:
   trunk/libavcodec/mpegvideo.c

Log:
fix 1/0 b frames + CBR bug 


Modified: trunk/libavcodec/mpegvideo.c
==============================================================================
--- trunk/libavcodec/mpegvideo.c	(original)
+++ trunk/libavcodec/mpegvideo.c	Tue Oct 31 23:22:11 2006
@@ -2542,6 +2542,10 @@
                     if(s->flipflop_rounding || s->codec_id == CODEC_ID_H263P || s->codec_id == CODEC_ID_MPEG4)
                         s->no_rounding ^= 1;
                 }
+                if(s->pict_type!=B_TYPE){
+                    s->time_base= s->last_time_base;
+                    s->last_non_b_time= s->time - s->pp_time;
+                }
 //                av_log(NULL, AV_LOG_ERROR, "R:%d ", s->next_lambda);
                 for(i=0; i<avctx->thread_count; i++){
                     PutBitContext *pb= &s->thread_context[i]->pb;




More information about the ffmpeg-cvslog mailing list