summaryrefslogtreecommitdiff
path: root/libavcodec/pngdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-10-04 06:39:29 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-10-04 06:39:29 +0200
commitf962518036665e1f75d0adcafea87fab6889d493 (patch)
tree7704c693fecbca953b0472ad694023775defa4a1 /libavcodec/pngdec.c
parent51b0694bc051cda2bfed048a35e694d1047c6ef0 (diff)
downloadffmpeg-f962518036665e1f75d0adcafea87fab6889d493.tar.gz
pngdec: set reference correctly for corepng.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/pngdec.c')
-rw-r--r--libavcodec/pngdec.c2
1 files changed, 1 insertions, 1 deletions
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;