mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 05:00:37 +00:00
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>
This commit is contained in:
parent
0bce55ac89
commit
4c7bcaa385
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user