Commit 04aa213b authored by michael's avatar michael

fix max b frames with b frame strategy 1


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4300 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5c8c7c3b
......@@ -2201,7 +2201,7 @@ static void select_input_picture(MpegEncContext *s){
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;
}
......
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