summaryrefslogtreecommitdiff
path: root/libavformat/mov.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2009-03-22 13:05:13 +0000
committerRonald S. Bultje <rsbultje@gmail.com>2009-03-22 13:05:13 +0000
commit2121b160d5863e7e66a96df01a2c38708920dd67 (patch)
treecf0db3e8ea475f57a4fac060ad5c95eb23234b1b /libavformat/mov.c
parent3c3e0680b5267f40f5f27dbac47b101476d483c5 (diff)
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
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r--libavformat/mov.c6
1 files changed, 3 insertions, 3 deletions
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);
}