aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2020-04-18 01:48:47 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2020-05-19 17:17:36 +0200
commit0078687445b61d66182ed59573932f4ee721cbb0 (patch)
treef3c685d63ae2851ebb178dae358241218f078598
parentd6b070771e55c9cf274fcbd1bc3d04930427c3e4 (diff)
downloadffmpeg-0078687445b61d66182ed59573932f4ee721cbb0.tar.gz
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> (cherry picked from commit 4c7bcaa385e5e5fda0084de2fb823ac25c0deba0) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/pngdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c
index cad5796545..9634858e1f 100644
--- a/libavcodec/pngdec.c
+++ b/libavcodec/pngdec.c
@@ -1290,7 +1290,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;
}