From ba4ffc2b48832c7ca95ac6e48f8c4f23aa4ad3a6 Mon Sep 17 00:00:00 2001 From: Loren Merritt Date: Thu, 19 May 2005 19:11:40 +0000 Subject: [PATCH] memory leak Originally committed as revision 4282 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/h264.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/h264.c b/libavcodec/h264.c index cf0580c7c5..d8dbc3fa0b 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -3491,6 +3491,7 @@ 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; } /**