From 60c14553e254e0264702e99a605f95fc9d24447b Mon Sep 17 00:00:00 2001 From: Laurent Aimar Date: Wed, 6 May 2009 22:10:11 +0200 Subject: [PATCH] Fixed typo in avcodec audio. --- modules/codec/avcodec/audio.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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; -- 2.39.2