summaryrefslogtreecommitdiff
path: root/libavcodec/pngdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-04-09 00:47:10 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2016-04-09 01:10:58 +0200
commitd433623fba2b273491ff7dda401648e7d07e19fe (patch)
tree71d8428fe392d6ed54a01a5da35ce4a233f4e719 /libavcodec/pngdec.c
parent7abc8e7ae3aa9221dddafe2a08b07eb3744428fa (diff)
avcodec/pngdec: Fix alpha detection with skip_frame
Fixes Ticket4816 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/pngdec.c')
-rw-r--r--libavcodec/pngdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c
index 61857d0e5c..24318fbeaf 100644
--- a/libavcodec/pngdec.c
+++ b/libavcodec/pngdec.c
@@ -1136,6 +1136,7 @@ static int decode_frame_common(AVCodecContext *avctx, PNGDecContext *s,
case MKTAG('p', 'H', 'Y', 's'):
case MKTAG('t', 'E', 'X', 't'):
case MKTAG('I', 'D', 'A', 'T'):
+ case MKTAG('t', 'R', 'N', 'S'):
break;
default:
goto skip_tag;