Browse Source

max_b_frame=4 bugfix

Originally committed as revision 833 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 23 years ago
parent
commit
a10678da8a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/mpegvideo.c

+ 1
- 1
libavcodec/mpegvideo.c View File

@@ -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;


Loading…
Cancel
Save