videomixer: Make checker pattern lookup table constant

This commit is contained in:
Sebastian Dröge 2009-07-08 18:19:45 +02:00
parent 69f9b7c8d6
commit 356972740a
2 changed files with 2 additions and 2 deletions

View file

@ -237,7 +237,7 @@ void
gst_videomixer_fill_ayuv_checker (guint8 * dest, gint width, gint height) gst_videomixer_fill_ayuv_checker (guint8 * dest, gint width, gint height)
{ {
gint i, j; 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 (i = 0; i < height; i++) {
for (j = 0; j < width; j++) { for (j = 0; j < width; j++) {

View file

@ -282,7 +282,7 @@ gst_videomixer_fill_i420_checker (guint8 * dest, gint width, gint height)
{ {
int size; int size;
gint i, j; gint i, j;
static int tab[] = { 80, 160, 80, 160 }; static const int tab[] = { 80, 160, 80, 160 };
guint8 *p = dest; guint8 *p = dest;
for (i = 0; i < height; i++) { for (i = 0; i < height; i++) {