Commit 60c14553 authored by Laurent Aimar's avatar Laurent Aimar

Fixed typo in avcodec audio.

parent e5e22fe5
...@@ -390,6 +390,12 @@ void EndAudioDec( decoder_t *p_dec ) ...@@ -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) #if defined(LIBAVCODEC_AUDIO_LAYOUT)
static const uint64_t pi_channels_map[][2] = static const uint64_t pi_channels_map[][2] =
{ {
...@@ -440,11 +446,6 @@ static const uint64_t pi_channels_map[][2] = ...@@ -440,11 +446,6 @@ static const uint64_t pi_channels_map[][2] =
}; };
#endif #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 ) static void SetupOutputFormat( decoder_t *p_dec, bool b_trust )
{ {
decoder_sys_t *p_sys = p_dec->p_sys; decoder_sys_t *p_sys = p_dec->p_sys;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment