diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-03-20 20:39:32 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-04-09 15:39:02 +0200 |
commit | c9d12a4692e8a39c8817483d522ffbfd88c4e073 (patch) | |
tree | cb2f46f327b43b2c6a605089b4b00da303d6f308 | |
parent | 7ca2ed716d0b587114b7786c6ea291c839a1ea20 (diff) | |
download | ffmpeg-c9d12a4692e8a39c8817483d522ffbfd88c4e073.tar.gz |
pngenc: Fix incorrect mask used for interlaced mode.
Fixes Ticket1109
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 15db6a959057b92245a384909ec7d413d5c16461)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/pngenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/pngenc.c b/libavcodec/pngenc.c index c4ef2fd945..5812cdad75 100644 --- a/libavcodec/pngenc.c +++ b/libavcodec/pngenc.c @@ -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); |