memory leak
authorLoren Merritt <lorenm@u.washington.edu>
Thu, 19 May 2005 19:11:40 +0000 (19:11 +0000)
committerLoren Merritt <lorenm@u.washington.edu>
Thu, 19 May 2005 19:11:40 +0000 (19:11 +0000)
Originally committed as revision 4282 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/h264.c

index cf0580c..d8dbc3f 100644 (file)
@@ -3491,6 +3491,7 @@ static void flush_dpb(AVCodecContext *avctx){
         h->delayed_pic[i]= NULL;
     h->delayed_output_pic= NULL;
     idr(h);
         h->delayed_pic[i]= NULL;
     h->delayed_output_pic= NULL;
     idr(h);
+    h->s.current_picture_ptr->reference= 0;
 }
 
 /**
 }
 
 /**