videomixer: Make checker pattern lookup table constant
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 8 Jul 2009 16:19:45 +0000 (18:19 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 8 Jul 2009 16:19:45 +0000 (18:19 +0200)
gst/videomixer/blend_ayuv.c
gst/videomixer/blend_i420.c

index 072773a..7cbe154 100644 (file)
@@ -237,7 +237,7 @@ void
 gst_videomixer_fill_ayuv_checker (guint8 * dest, gint width, gint height)
 {
   gint i, j;
-  static int tab[] = { 80, 160, 80, 160 };
+  static const int tab[] = { 80, 160, 80, 160 };
 
   for (i = 0; i < height; i++) {
     for (j = 0; j < width; j++) {
index a2e6c44..91fa792 100644 (file)
@@ -282,7 +282,7 @@ gst_videomixer_fill_i420_checker (guint8 * dest, gint width, gint height)
 {
   int size;
   gint i, j;
-  static int tab[] = { 80, 160, 80, 160 };
+  static const int tab[] = { 80, 160, 80, 160 };
   guint8 *p = dest;
 
   for (i = 0; i < height; i++) {