diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2002-08-01 11:01:07 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-08-01 11:01:07 +0000 |
commit | a10678da8aa82d44aedc20ece237f56a3a94a4be (patch) | |
tree | 3fdc3d7f2ad7d06deeadc4c9853a7936a427b826 | |
parent | 5efa265074d631d39ed7ffb25bcb4d951e2f395a (diff) | |
download | ffmpeg-a10678da8aa82d44aedc20ece237f56a3a94a4be.tar.gz |
max_b_frame=4 bugfix
Originally committed as revision 833 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/mpegvideo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index be4e1dc0a9..c7a9afae59 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; |