Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
731e003f
Commit
731e003f
authored
Sep 24, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simple: fix x.1 inputs
parent
5ec54bbd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
14 deletions
+16
-14
modules/audio_filter/channel_mixer/simple.c
modules/audio_filter/channel_mixer/simple.c
+16
-14
No files found.
modules/audio_filter/channel_mixer/simple.c
View file @
731e003f
...
...
@@ -281,13 +281,15 @@ static int OpenFilter( vlc_object_t *p_this )
==
p_filter
->
fmt_out
.
audio
.
i_original_channels
)
return
VLC_EGENERIC
;
const
bool
b_input_7_0
=
(
input
&
~
AOUT_CHAN_LFE
)
==
AOUT_CHANS_7_0
;
const
bool
b_input_6_1
=
input
==
AOUT_CHANS_6_1_MIDDLE
;
const
bool
b_input_5_0
=
input
==
AOUT_CHANS_5_0
const
bool
b_input_4_center_rear
=
input
==
AOUT_CHANS_4_CENTER_REAR
;
input
&=
~
AOUT_CHAN_LFE
;
const
bool
b_input_7_x
=
input
==
AOUT_CHANS_7_0
;
const
bool
b_input_5_x
=
input
==
AOUT_CHANS_5_0
||
input
==
AOUT_CHANS_5_0_MIDDLE
;
const
bool
b_input_4_center_rear
=
(
input
&
~
AOUT_CHAN_LFE
)
==
AOUT_CHANS_4_CENTER_REAR
;
const
bool
b_input_3_0
=
(
input
&
~
AOUT_CHAN_LFE
)
==
AOUT_CHANS_3_0
;
const
bool
b_input_3_x
=
input
==
AOUT_CHANS_3_0
;
/*
* TODO: We don't support any 8.1 input
...
...
@@ -296,41 +298,41 @@ static int OpenFilter( vlc_object_t *p_this )
*/
if
(
output
==
AOUT_CHAN_CENTER
)
{
if
(
b_input_7_
0
)
if
(
b_input_7_
x
)
do_work
=
DoWork_7_x_to_1_0
;
else
if
(
b_input_5_
0
)
else
if
(
b_input_5_
x
)
do_work
=
DoWork_5_x_to_1_0
;
else
if
(
b_input_4_center_rear
)
do_work
=
DoWork_4_0_to_1_0
;
else
if
(
b_input_3_
0
)
else
if
(
b_input_3_
x
)
do_work
=
DoWork_3_x_to_1_0
;
else
do_work
=
DoWork_2_x_to_1_0
;
}
else
if
(
output
==
AOUT_CHANS_2_0
)
{
if
(
b_input_7_
0
)
if
(
b_input_7_
x
)
do_work
=
DoWork_7_x_to_2_0
;
else
if
(
b_input_6_1
)
do_work
=
DoWork_6_1_to_2_0
;
else
if
(
b_input_5_
0
)
else
if
(
b_input_5_
x
)
do_work
=
DoWork_5_x_to_2_0
;
else
if
(
b_input_4_center_rear
)
do_work
=
DoWork_4_0_to_2_0
;
else
if
(
b_input_3_
0
)
else
if
(
b_input_3_
x
)
do_work
=
DoWork_3_x_to_2_0
;
}
else
if
(
output
==
AOUT_CHANS_4_0
)
{
if
(
b_input_7_
0
)
if
(
b_input_7_
x
)
do_work
=
DoWork_7_x_to_4_0
;
else
if
(
b_input_5_
0
)
else
if
(
b_input_5_
x
)
do_work
=
DoWork_5_x_to_4_0
;
}
else
if
(
(
output
&
~
AOUT_CHAN_LFE
)
==
AOUT_CHANS_5_0
||
(
output
&
~
AOUT_CHAN_LFE
)
==
AOUT_CHANS_5_0_MIDDLE
)
{
if
(
b_input_7_
0
)
if
(
b_input_7_
x
)
do_work
=
DoWork_7_x_to_5_x
;
else
if
(
b_input_6_1
)
do_work
=
DoWork_6_1_to_5_x
;
...
...
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