pngdec: Fix interlaced PAETH prediction

Fixes Ticket161

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2011-09-06 16:22:38 +02:00
parent 2d4102fc13
commit bc6445f2db
1 changed files with 1 additions and 0 deletions

View 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;