[FFmpeg-cvslog] color_table array should be const.

Reimar Döffinger git at videolan.org
Sat Nov 5 15:45:27 CET 2011


ffmpeg | branch: master | Reimar Döffinger <Reimar.Doeffinger at gmx.de> | Sat Nov  5 15:10:23 2011 +0100| [bd09fecce220201af634922df588752c47493230] | committer: Reimar Döffinger

color_table array should be const.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bd09fecce220201af634922df588752c47493230
---

 libavutil/parseutils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavutil/parseutils.c b/libavutil/parseutils.c
index 0c787d6..bf79921 100644
--- a/libavutil/parseutils.c
+++ b/libavutil/parseutils.c
@@ -148,7 +148,7 @@ typedef struct {
     uint8_t     rgb_color[3];    ///< RGB values for the color
 } ColorEntry;
 
-static ColorEntry color_table[] = {
+static const ColorEntry color_table[] = {
     { "AliceBlue",            { 0xF0, 0xF8, 0xFF } },
     { "AntiqueWhite",         { 0xFA, 0xEB, 0xD7 } },
     { "Aqua",                 { 0x00, 0xFF, 0xFF } },



More information about the ffmpeg-cvslog mailing list