Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
e5e22fe5
Commit
e5e22fe5
authored
May 06, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try to fix compilation with older ffmpeg version.
parent
14b2a517
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
modules/codec/avcodec/audio.c
modules/codec/avcodec/audio.c
+26
-0
No files found.
modules/codec/avcodec/audio.c
View file @
e5e22fe5
...
@@ -390,6 +390,7 @@ void EndAudioDec( decoder_t *p_dec )
...
@@ -390,6 +390,7 @@ void EndAudioDec( decoder_t *p_dec )
/*****************************************************************************
/*****************************************************************************
*
*
*****************************************************************************/
*****************************************************************************/
#if defined(LIBAVCODEC_AUDIO_LAYOUT)
static
const
uint64_t
pi_channels_map
[][
2
]
=
static
const
uint64_t
pi_channels_map
[][
2
]
=
{
{
{
CH_FRONT_LEFT
,
AOUT_CHAN_LEFT
},
{
CH_FRONT_LEFT
,
AOUT_CHAN_LEFT
},
...
@@ -413,6 +414,31 @@ static const uint64_t pi_channels_map[][2] =
...
@@ -413,6 +414,31 @@ static const uint64_t pi_channels_map[][2] =
{
CH_STEREO_LEFT
,
0
},
{
CH_STEREO_LEFT
,
0
},
{
CH_STEREO_RIGHT
,
0
},
{
CH_STEREO_RIGHT
,
0
},
};
};
#else
static
const
uint64_t
pi_channels_map
[][
2
]
=
{
{
0
,
AOUT_CHAN_LEFT
},
{
0
,
AOUT_CHAN_RIGHT
},
{
0
,
AOUT_CHAN_CENTER
},
{
0
,
AOUT_CHAN_LFE
},
{
0
,
AOUT_CHAN_REARLEFT
},
{
0
,
AOUT_CHAN_REARRIGHT
},
{
0
,
0
},
{
0
,
0
},
{
0
,
AOUT_CHAN_REARCENTER
},
{
0
,
AOUT_CHAN_MIDDLELEFT
},
{
0
,
AOUT_CHAN_MIDDLERIGHT
},
{
0
,
0
},
{
0
,
0
},
{
0
,
0
},
{
0
,
0
},
{
0
,
0
},
{
0
,
0
},
{
0
,
0
},
{
0
,
0
},
{
0
,
0
},
};
#endif
#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 52, 2, 0 )
#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 52, 2, 0 )
# define LIBAVCODEC_AUDIO_LAYOUT
# define LIBAVCODEC_AUDIO_LAYOUT
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment