Commit aa08a2a5 authored by michael's avatar michael

Fixes a segfault when flushing delayed B-frames on the 2nd pass. patch by...

Fixes a segfault when flushing delayed B-frames on the 2nd pass. patch by (Loren Merritt <lorenm.u@washington@edu>)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3707 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 946ea023
......@@ -2015,6 +2015,12 @@ static void select_input_picture(MpegEncContext *s){
for(i=0; i<s->max_b_frames+1; i++){
int pict_num= s->input_picture[0]->display_picture_number + i;
int pict_type= s->rc_context.entry[pict_num].new_pict_type;
if(!s->input_picture[i]){
if(i>0)
s->rc_context.entry[pict_num-1].new_pict_type = P_TYPE;
break;
}
s->input_picture[i]->pict_type= pict_type;
if(i + 1 >= s->rc_context.num_entries) 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