diff --git a/libswresample/swresample-test.c b/libswresample/swresample-test.c
index 7e2854da7c398818418847e8c5a6ac7991ad3630..47c54a109b1fc8373843dc2dd0b71067e7635cee 100644
--- a/libswresample/swresample-test.c
+++ b/libswresample/swresample-test.c
@@ -108,7 +108,7 @@ static const int rates[] = {
     48000,
 };
 
-uint64_t layouts[]={
+static const uint64_t layouts[]={
     AV_CH_LAYOUT_MONO                    ,
     AV_CH_LAYOUT_STEREO                  ,
     AV_CH_LAYOUT_2_1                     ,