Commit 1d0487f7 authored by Paul B Mahol's avatar Paul B Mahol

avcodec/pngdec: reset has_trns after every decode_frame_png()

Fixes #4887.
Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 69e456d7
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment