avcodec/pngdec: Pass ret from decode_iccp_chunk()

Found while reviewing a patch fixing a similar issue

Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
pull/336/head
Michael Niedermayer 5 years ago
parent 0bce55ac89
commit 4c7bcaa385
  1. 2
      libavcodec/pngdec.c

@ -1302,7 +1302,7 @@ static int decode_frame_common(AVCodecContext *avctx, PNGDecContext *s,
break;
}
case MKTAG('i', 'C', 'C', 'P'): {
if (decode_iccp_chunk(s, length, p) < 0)
if ((ret = decode_iccp_chunk(s, length, p)) < 0)
goto fail;
break;
}

Loading…
Cancel
Save