Browse Source

pngdec: Fix interlaced PAETH prediction

Fixes Ticket161

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.9
Michael Niedermayer 14 years ago
parent
commit
bc6445f2db
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/pngdec.c

+ 1
- 0
libavcodec/pngdec.c View File

@@ -317,6 +317,7 @@ static void png_handle_row(PNGDecContext *s)
} }
s->y++; s->y++;
if (s->y == s->height) { if (s->y == s->height) {
memset(s->last_row, 0, s->row_size);
for(;;) { for(;;) {
if (s->pass == NB_PASSES - 1) { if (s->pass == NB_PASSES - 1) {
s->state |= PNG_ALLIMAGE; s->state |= PNG_ALLIMAGE;


Loading…
Cancel
Save