ffplay: make next_nb_channels[] static const
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 24 Aug 2013 12:27:16 +0000 (14:27 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 24 Aug 2013 17:53:11 +0000 (19:53 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffplay.c

index 26a1452..4d89c02 100644 (file)
--- a/ffplay.c
+++ b/ffplay.c
@@ -2406,7 +2406,7 @@ static int audio_open(void *opaque, int64_t wanted_channel_layout, int wanted_nb
 {
     SDL_AudioSpec wanted_spec, spec;
     const char *env;
-    const int next_nb_channels[] = {0, 0, 1, 6, 2, 6, 4, 6};
+    static const int next_nb_channels[] = {0, 0, 1, 6, 2, 6, 4, 6};
 
     env = SDL_getenv("SDL_AUDIO_CHANNELS");
     if (env) {