From f962518036665e1f75d0adcafea87fab6889d493 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 4 Oct 2011 06:39:29 +0200 Subject: [PATCH] pngdec: set reference correctly for corepng. Signed-off-by: Michael Niedermayer --- libavcodec/pngdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c index 712d88faa2..dd3fe67876 100644 --- a/libavcodec/pngdec.c +++ b/libavcodec/pngdec.c @@ -506,7 +506,7 @@ static int decode_frame(AVCodecContext *avctx, if(p->data[0]) avctx->release_buffer(avctx, p); - p->reference= 0; + p->reference= 1; if(avctx->get_buffer(avctx, p) < 0){ av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n"); goto fail;