OSDN Git Service

pngdec: Fix interlaced PAETH prediction
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 6 Sep 2011 14:22:38 +0000 (16:22 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 6 Sep 2011 14:22:38 +0000 (16:22 +0200)
Fixes Ticket161

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/pngdec.c

index 4fe2884..5abdb90 100644 (file)
@@ -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;