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>
This commit is contained in:
parent
d97cfd89eb
commit
2f487066ed
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user