diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2020-04-18 02:48:47 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2020-04-20 21:38:41 +0300 |
commit | 4c7bcaa385e5e5fda0084de2fb823ac25c0deba0 (patch) | |
tree | 3129027b12a10dbbf4ed3e64dcee52f934085bf0 /libavcodec/pngdec.c | |
parent | 0bce55ac89491842d6ff57a84a5222a00f03c772 (diff) |
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>
Diffstat (limited to 'libavcodec/pngdec.c')
-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; } |