# HG changeset patch # User michael # Date 1162333331 0 # Node ID bfc1532904eb8b079c5019b9d4d5f9b6a602890f # Parent e7e72aad32e47cfceb0be192a0070559c591462b fix 1/0 b frames + CBR bug diff -r e7e72aad32e4 -r bfc1532904eb mpegvideo.c --- a/mpegvideo.c Tue Oct 31 11:19:51 2006 +0000 +++ b/mpegvideo.c Tue Oct 31 22:22:11 2006 +0000 @@ -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; ithread_count; i++){ PutBitContext *pb= &s->thread_context[i]->pb;