[FFmpeg-cvslog] avcodec/webp: fix default palette color 0xff000000 -> 0x00000000
Pascal Massimino
git at videolan.org
Sun Oct 5 00:32:22 CEST 2014
ffmpeg | branch: release/2.4 | Pascal Massimino <pascal.massimino at gmail.com> | Mon Sep 22 14:48:57 2014 -0700| [ff6d440d107d2e5183be55292a33937ca98f9a06] | 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=ff6d440d107d2e5183be55292a33937ca98f9a06
---
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