Commit a10678da authored by Michael Niedermayer's avatar Michael Niedermayer

max_b_frame=4 bugfix

Originally committed as revision 833 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 5efa2650
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment