diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-03-20 16:27:37 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-03-20 16:45:19 +0400 |
commit | 4ed47d335432e6416f9ee92aa0845d94451f9c6a (patch) | |
tree | a835557631a83dc34aae793dae40338ec4bfa8da /libavcodec | |
parent | eeb792d8629cd62160a6f8821fb058332c04176c (diff) |
pngdec: dont discard incomplete images.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-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; } |