changeset 2794:b556182542cb libavformat

Make ff_qt_default_palette_* arrays "static const"
author reimar
date Sun, 02 Dec 2007 23:27:01 +0000
parents d5842afe8539
children f417ee08f8c1
files mov.c qtpalette.h
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mov.c	Sun Dec 02 21:52:43 2007 +0000
+++ b/mov.c	Sun Dec 02 23:27:01 2007 +0000
@@ -579,7 +579,7 @@
     int color_index;
     int color_dec;
     int color_greyscale;
-    unsigned char *color_table;
+    const uint8_t *color_table;
     int j;
     unsigned char r, g, b;
 
--- a/qtpalette.h	Sun Dec 02 21:52:43 2007 +0000
+++ b/qtpalette.h	Sun Dec 02 23:27:01 2007 +0000
@@ -23,14 +23,14 @@
 #ifndef FFMPEG_QTPALETTE_H
 #define FFMPEG_QTPALETTE_H
 
-unsigned char ff_qt_default_palette_4[4 * 4] = {
+static const uint8_t ff_qt_default_palette_4[4 * 4] = {
   0x93, 0x65, 0x5E, 0x00,
   0xFF, 0xFF, 0xFF, 0x00,
   0xDF, 0xD0, 0xAB, 0x00,
   0x00, 0x00, 0x00, 0x00
 };
 
-unsigned char ff_qt_default_palette_16[16 * 4] = {
+static const uint8_t ff_qt_default_palette_16[16 * 4] = {
   0xFF, 0xFB, 0xFF, 0x00,
   0xEF, 0xD9, 0xBB, 0x00,
   0xE8, 0xC9, 0xB1, 0x00,
@@ -49,7 +49,7 @@
   0x00, 0x00, 0x00, 0x00
 };
 
-unsigned char ff_qt_default_palette_256[256 * 4] = {
+static const uint8_t ff_qt_default_palette_256[256 * 4] = {
   /*   0, 0x00 */  0xFF, 0xFF, 0xFF, 0x00,
   /*   1, 0x01 */  0xFF, 0xFF, 0xCC, 0x00,
   /*   2, 0x02 */  0xFF, 0xFF, 0x99, 0x00,