[FFmpeg-devel] [PATCH] ffplay: make next_nb_channels[] static const

Michael Niedermayer michaelni at gmx.at
Sat Aug 24 20:00:36 CEST 2013


On Sat, Aug 24, 2013 at 07:04:04PM +0200, Marton Balint wrote:
> 
> On Sat, 24 Aug 2013, Michael Niedermayer wrote:
> 
> >Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> >---
> >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) {
> 
> LGTM, thanks.

applied

thanks

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

During times of universal deceit, telling the truth becomes a
revolutionary act. -- George Orwell
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130824/dc131937/attachment.asc>


More information about the ffmpeg-devel mailing list