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
f20299c2
Commit
f20299c2
authored
Apr 21, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not apply AOUT_CHAN_PHYSMASK to i_physical_channels
It only makes sense for i_original_channels.
parent
af3201fb
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
10 deletions
+8
-10
include/vlc_aout.h
include/vlc_aout.h
+1
-1
modules/audio_filter/converter/a52tofloat32.c
modules/audio_filter/converter/a52tofloat32.c
+2
-3
modules/audio_filter/converter/dtstofloat32.c
modules/audio_filter/converter/dtstofloat32.c
+2
-3
modules/codec/vorbis.c
modules/codec/vorbis.c
+2
-2
src/audio_output/common.c
src/audio_output/common.c
+1
-1
No files found.
include/vlc_aout.h
View file @
f20299c2
...
@@ -209,7 +209,7 @@ VLC_API void aout_ChannelExtract( void *p_dst, int i_dst_channels, const void *p
...
@@ -209,7 +209,7 @@ VLC_API void aout_ChannelExtract( void *p_dst, int i_dst_channels, const void *p
/* */
/* */
static
inline
unsigned
aout_FormatNbChannels
(
const
audio_sample_format_t
*
fmt
)
static
inline
unsigned
aout_FormatNbChannels
(
const
audio_sample_format_t
*
fmt
)
{
{
return
popcount
(
fmt
->
i_physical_channels
&
AOUT_CHAN_PHYSMASK
);
return
popcount
(
fmt
->
i_physical_channels
);
}
}
VLC_API
unsigned
int
aout_BitsPerSample
(
vlc_fourcc_t
i_format
)
VLC_USED
;
VLC_API
unsigned
int
aout_BitsPerSample
(
vlc_fourcc_t
i_format
)
VLC_USED
;
...
...
modules/audio_filter/converter/a52tofloat32.c
View file @
f20299c2
...
@@ -123,8 +123,7 @@ static int Open( vlc_object_t *p_this, filter_sys_t *p_sys,
...
@@ -123,8 +123,7 @@ static int Open( vlc_object_t *p_this, filter_sys_t *p_sys,
/* We'll do our own downmixing, thanks. */
/* We'll do our own downmixing, thanks. */
p_sys
->
i_nb_channels
=
aout_FormatNbChannels
(
output
);
p_sys
->
i_nb_channels
=
aout_FormatNbChannels
(
output
);
switch
(
(
output
->
i_physical_channels
&
AOUT_CHAN_PHYSMASK
)
switch
(
output
->
i_physical_channels
&
~
AOUT_CHAN_LFE
)
&
~
AOUT_CHAN_LFE
)
{
{
case
AOUT_CHAN_CENTER
:
case
AOUT_CHAN_CENTER
:
if
(
(
output
->
i_original_channels
&
AOUT_CHAN_CENTER
)
if
(
(
output
->
i_original_channels
&
AOUT_CHAN_CENTER
)
...
@@ -214,7 +213,7 @@ static int Open( vlc_object_t *p_this, filter_sys_t *p_sys,
...
@@ -214,7 +213,7 @@ static int Open( vlc_object_t *p_this, filter_sys_t *p_sys,
}
}
aout_CheckChannelReorder
(
pi_channels_in
,
NULL
,
aout_CheckChannelReorder
(
pi_channels_in
,
NULL
,
output
->
i_physical_channels
&
AOUT_CHAN_PHYSMASK
,
output
->
i_physical_channels
,
p_sys
->
i_nb_channels
,
p_sys
->
i_nb_channels
,
p_sys
->
pi_chan_table
);
p_sys
->
pi_chan_table
);
...
...
modules/audio_filter/converter/dtstofloat32.c
View file @
f20299c2
...
@@ -102,8 +102,7 @@ static int Open( vlc_object_t *p_this, filter_sys_t *p_sys,
...
@@ -102,8 +102,7 @@ static int Open( vlc_object_t *p_this, filter_sys_t *p_sys,
/* We'll do our own downmixing, thanks. */
/* We'll do our own downmixing, thanks. */
p_sys
->
i_nb_channels
=
aout_FormatNbChannels
(
output
);
p_sys
->
i_nb_channels
=
aout_FormatNbChannels
(
output
);
switch
(
(
output
->
i_physical_channels
&
AOUT_CHAN_PHYSMASK
)
switch
(
output
->
i_physical_channels
&
~
AOUT_CHAN_LFE
)
&
~
AOUT_CHAN_LFE
)
{
{
case
AOUT_CHAN_CENTER
:
case
AOUT_CHAN_CENTER
:
if
(
(
output
->
i_original_channels
&
AOUT_CHAN_CENTER
)
if
(
(
output
->
i_original_channels
&
AOUT_CHAN_CENTER
)
...
@@ -176,7 +175,7 @@ static int Open( vlc_object_t *p_this, filter_sys_t *p_sys,
...
@@ -176,7 +175,7 @@ static int Open( vlc_object_t *p_this, filter_sys_t *p_sys,
}
}
aout_CheckChannelReorder
(
pi_channels_in
,
NULL
,
aout_CheckChannelReorder
(
pi_channels_in
,
NULL
,
output
->
i_physical_channels
&
AOUT_CHAN_PHYSMASK
,
output
->
i_physical_channels
,
p_sys
->
i_nb_channels
,
p_sys
->
i_nb_channels
,
p_sys
->
pi_chan_table
);
p_sys
->
pi_chan_table
);
...
...
modules/codec/vorbis.c
View file @
f20299c2
...
@@ -660,12 +660,12 @@ static void ConfigureChannelOrder(int *pi_chan_table, int i_channels, uint32_t i
...
@@ -660,12 +660,12 @@ static void ConfigureChannelOrder(int *pi_chan_table, int i_channels, uint32_t i
if
(
b_decode
)
if
(
b_decode
)
aout_CheckChannelReorder
(
pi_channels_in
,
NULL
,
aout_CheckChannelReorder
(
pi_channels_in
,
NULL
,
i_channel_mask
&
AOUT_CHAN_PHYSMASK
,
i_channel_mask
,
i_channels
,
i_channels
,
pi_chan_table
);
pi_chan_table
);
else
else
aout_CheckChannelReorder
(
NULL
,
pi_channels_in
,
aout_CheckChannelReorder
(
NULL
,
pi_channels_in
,
i_channel_mask
&
AOUT_CHAN_PHYSMASK
,
i_channel_mask
,
i_channels
,
i_channels
,
pi_chan_table
);
pi_chan_table
);
}
}
...
...
src/audio_output/common.c
View file @
f20299c2
...
@@ -300,7 +300,7 @@ void aout_FormatPrepare( audio_sample_format_t * p_format )
...
@@ -300,7 +300,7 @@ void aout_FormatPrepare( audio_sample_format_t * p_format )
*****************************************************************************/
*****************************************************************************/
const
char
*
aout_FormatPrintChannels
(
const
audio_sample_format_t
*
p_format
)
const
char
*
aout_FormatPrintChannels
(
const
audio_sample_format_t
*
p_format
)
{
{
switch
(
p_format
->
i_physical_channels
&
AOUT_CHAN_PHYSMASK
)
switch
(
p_format
->
i_physical_channels
)
{
{
case
AOUT_CHAN_LEFT
:
case
AOUT_CHAN_LEFT
:
case
AOUT_CHAN_RIGHT
:
case
AOUT_CHAN_RIGHT
:
...
...
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