Commit e5b31129 authored by Pascal Massimino's avatar Pascal Massimino Committed by Michael Niedermayer

avcodec/webp: fix default palette color 0xff000000 -> 0x00000000

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent b0f7de3e
......@@ -1066,7 +1066,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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment