avcodec/pngdec: reset has_trns after every decode_frame_png()

Fixes #4887.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2015-09-28 20:53:01 +02:00
parent 69e456d7fb
commit 1d0487f77f

View File

@ -1254,7 +1254,7 @@ static int decode_frame_png(AVCodecContext *avctx,
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;
} }
s->y = s->state = 0; s->y = s->state = s->has_trns = 0;
/* init the zlib */ /* init the zlib */
s->zstream.zalloc = ff_png_zalloc; s->zstream.zalloc = ff_png_zalloc;