changeset 588:9e271424160f libavcodec

max_b_frame=4 bugfix
author michaelni
date Thu, 01 Aug 2002 11:01:07 +0000
parents 4d41fe7eb780
children 507e688d57b2
files mpegvideo.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;