aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/pngdec.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2015-09-28 20:53:01 +0200
committerPaul B Mahol <onemda@gmail.com>2015-09-28 20:54:09 +0200
commit1d0487f77f07663c510207eb6e946675b71823cb (patch)
tree1ff7b6ca281e102a82158468445fc9047da4f462 /libavcodec/pngdec.c
parent69e456d7fbc5fff88acf747d135bf15c8e511c59 (diff)
downloadffmpeg-1d0487f77f07663c510207eb6e946675b71823cb.tar.gz
avcodec/pngdec: reset has_trns after every decode_frame_png()
Fixes #4887. Signed-off-by: Paul B Mahol <onemda@gmail.com>
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 ee11f1249a..1b47b18361 100644
--- a/libavcodec/pngdec.c
+++ b/libavcodec/pngdec.c
@@ -1254,7 +1254,7 @@ static int decode_frame_png(AVCodecContext *avctx,
return AVERROR_INVALIDDATA;
}
- s->y = s->state = 0;
+ s->y = s->state = s->has_trns = 0;
/* init the zlib */
s->zstream.zalloc = ff_png_zalloc;