diff options
author | Pascal Massimino <pascal.massimino@gmail.com> | 2014-09-22 14:48:57 -0700 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-10-05 14:20:32 +0200 |
commit | a1605af9b559ab15e3b13e0eed9d3d35cda46636 (patch) | |
tree | 8378b05ed735ecbba9881d51fff00970da969197 | |
parent | b0937dd61d767d2d476a10f329e9ba456c875a51 (diff) | |
download | ffmpeg-a1605af9b559ab15e3b13e0eed9d3d35cda46636.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>
-rw-r--r-- | libavcodec/webp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/webp.c b/libavcodec/webp.c index ab25d7a0d4..f14213ffa8 100644 --- a/libavcodec/webp.c +++ b/libavcodec/webp.c @@ -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); |