Commit 00786874 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/pngdec: Pass ret from decode_iccp_chunk()

Found while reviewing a patch fixing a similar issue
Reviewed-by: 's avatarAnton Khirnov <anton@khirnov.net>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 4c7bcaa3)
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent d6b07077
...@@ -1290,7 +1290,7 @@ static int decode_frame_common(AVCodecContext *avctx, PNGDecContext *s, ...@@ -1290,7 +1290,7 @@ static int decode_frame_common(AVCodecContext *avctx, PNGDecContext *s,
break; break;
} }
case MKTAG('i', 'C', 'C', 'P'): { 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; goto fail;
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment