Commit a3e5ef9c authored by michaelni's avatar michaelni

max_b_frame=4 bugfix


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@833 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 1dc7afe1
...@@ -760,7 +760,7 @@ void reorder_input(MpegEncContext *s, AVPicture *pict) ...@@ -760,7 +760,7 @@ void reorder_input(MpegEncContext *s, AVPicture *pict)
} }
if(index!=0){ if(index!=0){
s->picture_buffer_index++; 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; 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