Commit f8f8457e authored by mru's avatar mru

fix segfault if flush is called before the first frame

(I think that's it, and this fixes it)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4335 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 90bead12
...@@ -3505,7 +3505,8 @@ static void flush_dpb(AVCodecContext *avctx){ ...@@ -3505,7 +3505,8 @@ static void flush_dpb(AVCodecContext *avctx){
h->delayed_pic[i]= NULL; h->delayed_pic[i]= NULL;
h->delayed_output_pic= NULL; h->delayed_output_pic= NULL;
idr(h); idr(h);
h->s.current_picture_ptr->reference= 0; if(h->s.current_picture_ptr)
h->s.current_picture_ptr->reference= 0;
} }
/** /**
......
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