From 2121b160d5863e7e66a96df01a2c38708920dd67 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Sun, 22 Mar 2009 13:05:13 +0000 Subject: Remove alpha channel from default colorspace tables, since it is unused. See "qtpalette.h" thread on mailinglist. Originally committed as revision 18144 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/mov.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libavformat/mov.c') diff --git a/libavformat/mov.c b/libavformat/mov.c index f4ba5e243f..0f17c6ecd5 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -881,9 +881,9 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOVAtom atom) color_table = ff_qt_default_palette_256; for (j = 0; j < color_count; j++) { - r = color_table[j * 4 + 0]; - g = color_table[j * 4 + 1]; - b = color_table[j * 4 + 2]; + r = color_table[j * 3 + 0]; + g = color_table[j * 3 + 1]; + b = color_table[j * 3 + 2]; st->codec->palctrl->palette[j] = (r << 16) | (g << 8) | (b); } -- cgit v1.2.3