Commit 15db6a95 authored by Michael Niedermayer's avatar Michael Niedermayer

pngenc: Fix incorrect mask used for interlaced mode.

Fixes Ticket1109
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 8f394a6c
......@@ -55,7 +55,7 @@ static void png_get_interlaced_row(uint8_t *dst, int row_size,
uint8_t *d;
const uint8_t *s;
mask = ff_png_pass_mask[pass];
mask = (int[]){0x80, 0x08, 0x88, 0x22, 0xaa, 0x55, 0xff}[pass];
switch(bits_per_pixel) {
case 1:
memset(dst, 0, row_size);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment