avcodec/webp: fix default palette color 0xff000000 -> 0x00000000
authorPascal Massimino <pascal.massimino@gmail.com>
Mon, 22 Sep 2014 21:48:57 +0000 (14:48 -0700)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 5 Oct 2014 12:20:32 +0000 (14:20 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit e5b3112996c3da45aa03b39c5ade375d40d4407d)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/webp.c

index ab25d7a..f14213f 100644 (file)
@@ -1062,7 +1062,7 @@ static int apply_color_indexing_transform(WebPContext *s)
             p = GET_PIXEL(img->frame, x, y);
             i = p[2];
             if (i >= pal->frame->width) {
-                AV_WB32(p, 0xFF000000);
+                AV_WB32(p, 0x00000000);
             } else {
                 const uint8_t *pi = GET_PIXEL(pal->frame, i, 0);
                 AV_COPY32(p, pi);