Browse Source

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
tags/v0.5
Måns Rullgård 20 years ago
parent
commit
ca15919699
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavcodec/h264.c

+ 2
- 1
libavcodec/h264.c 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;
}

/**


Loading…
Cancel
Save