max_b_frame=4 bugfix

Originally committed as revision 833 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2002-08-01 11:01:07 +00:00
parent 5efa265074
commit a10678da8a
1 changed files with 1 additions and 1 deletions

View File

@ -760,7 +760,7 @@ void reorder_input(MpegEncContext *s, AVPicture *pict)
}
if(index!=0){
s->picture_buffer_index++;
if(s->picture_buffer_index >= REORDER_BUFFER_SIZE-1) s->picture_buffer_index=0;
if(s->picture_buffer_index >= REORDER_BUFFER_SIZE) s->picture_buffer_index=0;
}
}
s->coded_order[index].pict_type = s->input_pict_type;