diff options
Diffstat (limited to 'libavcodec/pngdec.c')
-rw-r--r-- | libavcodec/pngdec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c index c8d4758848..8901874690 100644 --- a/libavcodec/pngdec.c +++ b/libavcodec/pngdec.c @@ -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 */ |