Fixes CID 1322359, CID 1322358.
Signed-off-by: Ganesh Ajjanagadde <[email protected]>
---
libavcodec/pngdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c
index d180141..fe22225 100644
--- a/libavcodec/pngdec.c
+++ b/libavcodec/pngdec.c
@@ -1006,7 +1006,7 @@ static int handle_p_frame_apng(AVCodecContext *avctx,
PNGDecContext *s,
uint8_t *background = buffer + s->image_linesize * y + s->bpp *
s->x_offset;
for (x = s->x_offset; x < s->x_offset + s->cur_w; ++x, foreground
+= s->bpp, background += s->bpp) {
size_t b;
- uint8_t foreground_alpha, background_alpha, output_alpha;
+ uint8_t foreground_alpha = 0, background_alpha, output_alpha;
uint8_t output[4];
// Since we might be blending alpha onto alpha, we use the
following equations:
--
2.6.0
_______________________________________________
ffmpeg-devel mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel