diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2005-05-21 22:20:26 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2005-05-21 22:20:26 +0000 |
commit | ded8477def9598d5c41208a74a6875e394da01c1 (patch) | |
tree | 2cd3245f629d7e15ccfd70644de77a1bd3c92c0a /libavcodec/mpegvideo.c | |
parent | 68fc9c272be53c4dc738d8f7edffffbf4616d5c1 (diff) | |
download | ffmpeg-ded8477def9598d5c41208a74a6875e394da01c1.tar.gz |
fix max b frames with b frame strategy 1
Originally committed as revision 4300 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 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; i<s->max_b_frames; i++){ + for(i=0; i<s->max_b_frames+1; i++){ if(s->input_picture[i]==NULL || s->input_picture[i]->b_frame_score - 1 > s->mb_num/40) break; } |