[FFmpeg-cvslog] avcodec/webp: fix default palette color 0xff000000 -> 0x00000000

Pascal Massimino git at videolan.org
Fri Oct 3 03:47:48 CEST 2014


ffmpeg | branch: release/2.3 | Pascal Massimino <pascal.massimino at gmail.com> | Mon Sep 22 14:48:57 2014 -0700| [aa40bbb492afc2c5e043999b1a291b7507fdcb7d] | committer: Michael Niedermayer

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

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit e5b3112996c3da45aa03b39c5ade375d40d4407d)

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=aa40bbb492afc2c5e043999b1a291b7507fdcb7d
---

 libavcodec/webp.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/webp.c b/libavcodec/webp.c
index 66c2d57..274708d 100644
--- a/libavcodec/webp.c
+++ b/libavcodec/webp.c
@@ -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);



More information about the ffmpeg-cvslog mailing list