aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-03-20 20:39:32 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-03-20 20:39:32 +0100
commit15db6a959057b92245a384909ec7d413d5c16461 (patch)
treed0489899b775047ce0afa5e055e935a1ba71f88c
parent8f394a6cf8efe0fa3bb231db7d3a03e8363a3ddd (diff)
downloadffmpeg-15db6a959057b92245a384909ec7d413d5c16461.tar.gz
pngenc: Fix incorrect mask used for interlaced mode.
Fixes Ticket1109 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/pngenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/pngenc.c b/libavcodec/pngenc.c
index 1af85841ca..86eae4f531 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);