From: Laurent Aimar Date: Wed, 6 May 2009 20:10:11 +0000 (+0200) Subject: Fixed typo in avcodec audio. X-Git-Tag: 1.0.0-rc1~51 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=60c14553e254e0264702e99a605f95fc9d24447b;p=vlc Fixed typo in avcodec audio. --- diff --git a/modules/codec/avcodec/audio.c b/modules/codec/avcodec/audio.c index da0bd4b153..cb89dd1922 100644 --- a/modules/codec/avcodec/audio.c +++ b/modules/codec/avcodec/audio.c @@ -390,6 +390,12 @@ void EndAudioDec( decoder_t *p_dec ) /***************************************************************************** * *****************************************************************************/ +#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 52, 2, 0 ) +# define LIBAVCODEC_AUDIO_LAYOUT +#else +# warning "Audio channel layout is unsupported by your avcodec version." +#endif + #if defined(LIBAVCODEC_AUDIO_LAYOUT) static const uint64_t pi_channels_map[][2] = { @@ -440,11 +446,6 @@ static const uint64_t pi_channels_map[][2] = }; #endif -#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 52, 2, 0 ) -# define LIBAVCODEC_AUDIO_LAYOUT -#else -# warning "Audio channel layout is unsupported by your avcodec version." -#endif static void SetupOutputFormat( decoder_t *p_dec, bool b_trust ) { decoder_sys_t *p_sys = p_dec->p_sys;