Commit ca159196 authored by Måns Rullgård's avatar Måns Rullgård

fix segfault if flush is called before the first frame

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

Originally committed as revision 4335 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 6510f43c
......@@ -3505,7 +3505,8 @@ static void flush_dpb(AVCodecContext *avctx){
h->delayed_pic[i]= NULL;
h->delayed_output_pic= NULL;
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