[FFmpeg-devel] [PATCH]lavc/pngdec: Reset has_trns on init
Carl Eugen Hoyos
cehoyos at ag.or.at
Mon Sep 28 21:27:30 CEST 2015
Hi!
Attached patch fixes ticket #4887 for me.
Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c
index ee11f12..c794b47 100644
--- a/libavcodec/pngdec.c
+++ b/libavcodec/pngdec.c
@@ -1077,6 +1077,7 @@ static int decode_frame_common(AVCodecContext *avctx, PNGDecContext *s,
int decode_next_dat = 0;
int ret;
+ s->has_trns = 0;
for (;;) {
length = bytestream2_get_bytes_left(&s->gb);
if (length <= 0) {
More information about the ffmpeg-devel
mailing list