[FFmpeg-cvslog] ffplay: make next_nb_channels[] static const

Michael Niedermayer git at videolan.org
Sat Aug 24 20:00:01 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Aug 24 14:27:16 2013 +0200| [5c6a58746b415462f13c409aacb9041c98ab9ea0] | committer: Michael Niedermayer

ffplay: make next_nb_channels[] static const

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5c6a58746b415462f13c409aacb9041c98ab9ea0
---

 ffplay.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffplay.c b/ffplay.c
index 26a1452..4d89c02 100644
--- 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) {



More information about the ffmpeg-cvslog mailing list