pngdec: set reference correctly for corepng.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/2/head
Michael Niedermayer 13 years ago
parent 51b0694bc0
commit f962518036
  1. 2
      libavcodec/pngdec.c

@ -506,7 +506,7 @@ static int decode_frame(AVCodecContext *avctx,
if(p->data[0]) if(p->data[0])
avctx->release_buffer(avctx, p); avctx->release_buffer(avctx, p);
p->reference= 0; p->reference= 1;
if(avctx->get_buffer(avctx, p) < 0){ if(avctx->get_buffer(avctx, p) < 0){
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n"); av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
goto fail; goto fail;

Loading…
Cancel
Save