From ded8477def9598d5c41208a74a6875e394da01c1 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 21 May 2005 22:20:26 +0000 Subject: [PATCH] fix max b frames with b frame strategy 1 Originally committed as revision 4300 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/mpegvideo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 7bf4bfd6cb..fae61104d4 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -2201,7 +2201,7 @@ static void select_input_picture(MpegEncContext *s){ s->input_picture[i-1]->data[0], s->linesize) + 1; } } - for(i=0; imax_b_frames; i++){ + for(i=0; imax_b_frames+1; i++){ if(s->input_picture[i]==NULL || s->input_picture[i]->b_frame_score - 1 > s->mb_num/40) break; }