Mercurial > libavcodec.hg
diff mpegvideo.c @ 2728:9994e07cd45f libavcodec
fix max b frames with b frame strategy 1
author | michael |
---|---|
date | Sat, 21 May 2005 22:20:26 +0000 |
parents | 7b7613020f2c |
children | 2b37bcabe608 |
line wrap: on
line diff
--- a/mpegvideo.c Sat May 21 21:37:07 2005 +0000 +++ b/mpegvideo.c Sat May 21 22:20:26 2005 +0000 @@ -2201,7 +2201,7 @@ 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; }