Commit 35697274 authored by Sebastian Dröge's avatar Sebastian Dröge
Browse files

videomixer: Make checker pattern lookup table constant

parent 69f9b7c8
...@@ -237,7 +237,7 @@ void ...@@ -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++) {
......
...@@ -282,7 +282,7 @@ gst_videomixer_fill_i420_checker (guint8 * dest, gint width, gint height) ...@@ -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++) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment