diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-03-20 13:27:37 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-03-20 13:45:19 +0100 |
commit | 4ed47d335432e6416f9ee92aa0845d94451f9c6a (patch) | |
tree | a835557631a83dc34aae793dae40338ec4bfa8da /libavcodec/pngdec.c | |
parent | eeb792d8629cd62160a6f8821fb058332c04176c (diff) | |
download | ffmpeg-4ed47d335432e6416f9ee92aa0845d94451f9c6a.tar.gz |
pngdec: dont discard incomplete images.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/pngdec.c')
-rw-r--r-- | libavcodec/pngdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c index b818b02a48..c8d4758848 100644 --- a/libavcodec/pngdec.c +++ b/libavcodec/pngdec.c @@ -594,7 +594,7 @@ static int decode_frame(AVCodecContext *avctx, } break; 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"); goto fail; } |