From: Michael Niedermayer Date: Thu, 1 Aug 2002 11:01:07 +0000 (+0000) Subject: max_b_frame=4 bugfix X-Git-Tag: v0.5~17437 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a10678da8aa82d44aedc20ece237f56a3a94a4be;p=platform%2Fupstream%2Flibav.git max_b_frame=4 bugfix Originally committed as revision 833 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index be4e1dc..c7a9afa 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -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;