diff --git a/tests/checkasm/vf_colorspace.c b/tests/checkasm/vf_colorspace.c
index 9ac841cfd4aa902354be823a052cecff9823f0e5..10b7b83924f3c2617258163132ed84c0d214e27f 100644
--- a/tests/checkasm/vf_colorspace.c
+++ b/tests/checkasm/vf_colorspace.c
@@ -48,7 +48,7 @@ static const char *format_string[] = {
     "444", "422", "420"
 };
 
-static unsigned bpp_mask[] = { 0xffffffff, 0x03ff03ff, 0x0fff0fff };
+static const unsigned bpp_mask[] = { 0xffffffff, 0x03ff03ff, 0x0fff0fff };
 
 static void check_yuv2yuv(void)
 {