Commit ded8477d authored by Michael Niedermayer's avatar Michael Niedermayer

fix max b frames with b frame strategy 1

Originally committed as revision 4300 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 68fc9c27
...@@ -2201,7 +2201,7 @@ static void select_input_picture(MpegEncContext *s){ ...@@ -2201,7 +2201,7 @@ static void select_input_picture(MpegEncContext *s){
s->input_picture[i-1]->data[0], s->linesize) + 1; s->input_picture[i-1]->data[0], s->linesize) + 1;
} }
} }
for(i=0; i<s->max_b_frames; i++){ for(i=0; i<s->max_b_frames+1; i++){
if(s->input_picture[i]==NULL || s->input_picture[i]->b_frame_score - 1 > s->mb_num/40) break; if(s->input_picture[i]==NULL || s->input_picture[i]->b_frame_score - 1 > s->mb_num/40) break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment