# HG changeset patch # User michaelni # Date 1028199667 0 # Node ID 9e271424160fa95b7ec50e9713f37d525b4132e1 # Parent 4d41fe7eb7806a7343d78598238ffe02985fa6a5 max_b_frame=4 bugfix diff -r 4d41fe7eb780 -r 9e271424160f mpegvideo.c --- a/mpegvideo.c Wed Jul 31 08:01:29 2002 +0000 +++ b/mpegvideo.c Thu Aug 01 11:01:07 2002 +0000 @@ -760,7 +760,7 @@ } 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;