Mercurial > libavcodec.hg
changeset 2728:9994e07cd45f libavcodec
fix max b frames with b frame strategy 1
author | michael |
---|---|
date | Sat, 21 May 2005 22:20:26 +0000 |
parents | 41ae70d266fd |
children | 26bf6f4e9945 |
files | mpegvideo.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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; }