1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

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
This commit is contained in:
Måns Rullgård 2005-06-01 12:03:25 +00:00
parent 6510f43cf3
commit ca15919699

View File

@ -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;
}
/**