]> git.sesse.net Git - vlc/blobdiff - modules/video_chroma/i420_rgb8.c
Declared many static variables const
[vlc] / modules / video_chroma / i420_rgb8.c
index 9528ffaea867c31819ab967098769fe900e4f127..78ed5c6e17f4f7eb1e60e0a4fbe144b5da813849 100644 (file)
@@ -70,15 +70,15 @@ void I420_RGB8( filter_t *p_filter, picture_t *p_src, picture_t *p_dest )
                                  - p_src->p[1].i_visible_pitch;
 
     /* The dithering matrices */
-    static int dither10[4] = {  0x0,  0x8,  0x2,  0xa };
-    static int dither11[4] = {  0xc,  0x4,  0xe,  0x6 };
-    static int dither12[4] = {  0x3,  0xb,  0x1,  0x9 };
-    static int dither13[4] = {  0xf,  0x7,  0xd,  0x5 };
-
-    static int dither20[4] = {  0x0, 0x10,  0x4, 0x14 };
-    static int dither21[4] = { 0x18,  0x8, 0x1c,  0xc };
-    static int dither22[4] = {  0x6, 0x16,  0x2, 0x12 };
-    static int dither23[4] = { 0x1e,  0xe, 0x1a,  0xa };
+    static const int dither10[4] = {  0x0,  0x8,  0x2,  0xa };
+    static const int dither11[4] = {  0xc,  0x4,  0xe,  0x6 };
+    static const int dither12[4] = {  0x3,  0xb,  0x1,  0x9 };
+    static const int dither13[4] = {  0xf,  0x7,  0xd,  0x5 };
+
+    static const int dither20[4] = {  0x0, 0x10,  0x4, 0x14 };
+    static const int dither21[4] = { 0x18,  0x8, 0x1c,  0xc };
+    static const int dither22[4] = {  0x6, 0x16,  0x2, 0x12 };
+    static const int dither23[4] = { 0x1e,  0xe, 0x1a,  0xa };
 
     SetOffset( p_filter->fmt_in.video.i_width,
                p_filter->fmt_in.video.i_height,