aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/webp.c
diff options
context:
space:
mode:
authorPascal Massimino <pascal.massimino@gmail.com>2014-09-22 14:48:57 -0700
committerMichael Niedermayer <michaelni@gmx.at>2014-11-28 18:44:37 +0100
commit77367f27280ccf82273de119d2e872855d1bf608 (patch)
tree09e29e2f03dabe3a92c3088c018a2c556b809c91 /libavcodec/webp.c
parent34ef754854ee6551d0db09c9ae4018e803c50b44 (diff)
downloadffmpeg-77367f27280ccf82273de119d2e872855d1bf608.tar.gz
avcodec/webp: fix default palette color 0xff000000 -> 0x00000000
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit e5b3112996c3da45aa03b39c5ade375d40d4407d) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/webp.c')
-rw-r--r--libavcodec/webp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/webp.c b/libavcodec/webp.c
index 457f1adf75..2044aaf00a 100644
--- a/libavcodec/webp.c
+++ b/libavcodec/webp.c
@@ -1040,7 +1040,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);