From bc6445f2dbd004565adda0c500754cc9ee151aed Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 6 Sep 2011 16:22:38 +0200 Subject: [PATCH] pngdec: Fix interlaced PAETH prediction Fixes Ticket161 Signed-off-by: Michael Niedermayer --- libavcodec/pngdec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c index 4fe288464a..5abdb90dee 100644 --- a/libavcodec/pngdec.c +++ b/libavcodec/pngdec.c @@ -317,6 +317,7 @@ static void png_handle_row(PNGDecContext *s) } s->y++; if (s->y == s->height) { + memset(s->last_row, 0, s->row_size); for(;;) { if (s->pass == NB_PASSES - 1) { s->state |= PNG_ALLIMAGE;