aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/pngdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-03-20 13:27:37 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-03-20 13:45:19 +0100
commit4ed47d335432e6416f9ee92aa0845d94451f9c6a (patch)
treea835557631a83dc34aae793dae40338ec4bfa8da /libavcodec/pngdec.c
parenteeb792d8629cd62160a6f8821fb058332c04176c (diff)
downloadffmpeg-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.c2
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;
}