From ca5dfd1550a1b118e1c4f357c1d4409f11c3d2cc Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 31 Aug 2011 05:04:14 +0200 Subject: [PATCH] h264: clean all non null elements of delayed_pic[] Signed-off-by: Michael Niedermayer (cherry picked from commit 66ce282df54edb33515d9ef3015b737428b6e0c3) --- libavcodec/h264.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 3a1fa02998..3701bc9b73 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -2233,7 +2233,7 @@ static void idr(H264Context *h){ static void flush_dpb(AVCodecContext *avctx){ H264Context *h= avctx->priv_data; int i; - for(i=0; idelayed_pic[i]) h->delayed_pic[i]->reference= 0; h->delayed_pic[i]= NULL;