diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2020-04-18 01:48:47 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2020-04-20 20:38:41 +0200 |
commit | 4c7bcaa385e5e5fda0084de2fb823ac25c0deba0 (patch) | |
tree | 3129027b12a10dbbf4ed3e64dcee52f934085bf0 | |
parent | 0bce55ac89491842d6ff57a84a5222a00f03c772 (diff) | |
download | ffmpeg-4c7bcaa385e5e5fda0084de2fb823ac25c0deba0.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>
-rw-r--r-- | libavcodec/pngdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c index 12d4eb0610..67bfc41b31 100644 --- a/libavcodec/pngdec.c +++ b/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; } |