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>
This commit is contained in:
parent
8e276fc96a
commit
aa40bbb492
@ -1066,7 +1066,7 @@ static int apply_color_indexing_transform(WebPContext *s)
|
|||||||
p = GET_PIXEL(img->frame, x, y);
|
p = GET_PIXEL(img->frame, x, y);
|
||||||
i = p[2];
|
i = p[2];
|
||||||
if (i >= pal->frame->width) {
|
if (i >= pal->frame->width) {
|
||||||
AV_WB32(p, 0xFF000000);
|
AV_WB32(p, 0x00000000);
|
||||||
} else {
|
} else {
|
||||||
const uint8_t *pi = GET_PIXEL(pal->frame, i, 0);
|
const uint8_t *pi = GET_PIXEL(pal->frame, i, 0);
|
||||||
AV_COPY32(p, pi);
|
AV_COPY32(p, pi);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user