]> git.sesse.net Git - ffmpeg/blobdiff - ffplay.c
avcodec/mjpegdec: make "unknown colorspace" error more informative
[ffmpeg] / ffplay.c
index 26a145277e7b3649c06f6b593ae47eb16c4a915f..4d89c02b2a8729129acf42f273846307b753e3e5 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) {