diff mov.c @ 4786:d5ae967cc549 libavformat

Remove alpha channel from default colorspace tables, since it is unused. See "qtpalette.h" thread on mailinglist.
author rbultje
date Sun, 22 Mar 2009 13:05:13 +0000
parents 400ca65902d2
children 0493d65debd7
line wrap: on
line diff
--- a/mov.c	Sun Mar 22 12:47:16 2009 +0000
+++ b/mov.c	Sun Mar 22 13:05:13 2009 +0000
@@ -881,9 +881,9 @@
                         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);
                     }