Commit 8f394a6c authored by Michael Niedermayer's avatar Michael Niedermayer

pngdec: print error message for truncated pngs even if we output them

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 309d8ec1
......@@ -594,8 +594,9 @@ static int decode_frame(AVCodecContext *avctx,
}
break;
case MKTAG('I', 'E', 'N', 'D'):
if (!(s->state & (PNG_ALLIMAGE|PNG_IDAT))) {
if (!(s->state & PNG_ALLIMAGE))
av_log(avctx, AV_LOG_ERROR, "IEND without all image\n");
if (!(s->state & (PNG_ALLIMAGE|PNG_IDAT))) {
goto fail;
}
bytestream2_skip(&s->gb, 4); /* crc */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment