mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-11 17:30:00 +01:00
avcodec/pngdec: reset has_trns after every decode_frame_png()
Fixes #4887.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
(cherry picked from commit 1d0487f77f)
This commit is contained in:
committed by
Carl Eugen Hoyos
parent
635831c087
commit
39df4d2475
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user