Commit 4ed47d33 authored by Michael Niedermayer's avatar Michael Niedermayer

pngdec: dont discard incomplete images.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent eeb792d8
...@@ -594,7 +594,7 @@ static int decode_frame(AVCodecContext *avctx, ...@@ -594,7 +594,7 @@ static int decode_frame(AVCodecContext *avctx,
} }
break; break;
case MKTAG('I', 'E', 'N', 'D'): case MKTAG('I', 'E', 'N', 'D'):
if (!(s->state & PNG_ALLIMAGE)) { if (!(s->state & (PNG_ALLIMAGE|PNG_IDAT))) {
av_log(avctx, AV_LOG_ERROR, "IEND without all image\n"); av_log(avctx, AV_LOG_ERROR, "IEND without all image\n");
goto fail; goto fail;
} }
......
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