Browse Source

pngenc: Fix incorrect mask used for interlaced mode.

Fixes Ticket1109

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 15db6a9590)

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

+ 1
- 1
libavcodec/pngenc.c View File

@@ -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);


Loading…
Cancel
Save