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
0db2b225
Commit
0db2b225
authored
Mar 31, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed wav audio channel order.
parent
bf04f9a8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
10 deletions
+18
-10
modules/demux/wav.c
modules/demux/wav.c
+18
-10
No files found.
modules/demux/wav.c
View file @
0db2b225
...
@@ -202,11 +202,20 @@ static int Open( vlc_object_t * p_this )
...
@@ -202,11 +202,20 @@ static int Open( vlc_object_t * p_this )
if
(
i_channel_mask
&
pi_channels_src
[
i
]
)
if
(
i_channel_mask
&
pi_channels_src
[
i
]
)
p_sys
->
i_channel_mask
|=
pi_channels_in
[
i
];
p_sys
->
i_channel_mask
|=
pi_channels_in
[
i
];
}
}
}
}
else
if
(
GetWLE
(
&
p_wf
->
wFormatTag
)
==
WAVE_FORMAT_PCM
&&
p_sys
->
fmt
.
audio
.
i_channels
>
2
&&
p_sys
->
fmt
.
audio
.
i_channels
<=
9
)
{
for
(
int
i
=
0
;
i
<
p_sys
->
fmt
.
audio
.
i_channels
;
i
++
)
p_sys
->
i_channel_mask
|=
pi_channels_in
[
i
];
}
if
(
p_sys
->
i_channel_mask
)
{
if
(
p_sys
->
fmt
.
i_codec
==
VLC_FOURCC
(
'a'
,
'r'
,
'a'
,
'w'
)
||
if
(
p_sys
->
fmt
.
i_codec
==
VLC_FOURCC
(
'a'
,
'r'
,
'a'
,
'w'
)
||
p_sys
->
fmt
.
i_codec
==
VLC_FOURCC
(
'p'
,
'c'
,
'm'
,
' '
)
||
p_sys
->
fmt
.
i_codec
==
VLC_FOURCC
(
'p'
,
'c'
,
'm'
,
' '
)
||
p_sys
->
fmt
.
i_codec
==
VLC_FOURCC
(
'a'
,
'f'
,
'l'
,
't'
)
)
p_sys
->
fmt
.
i_codec
==
VLC_FOURCC
(
'a'
,
'f'
,
'l'
,
't'
)
)
p_sys
->
b_chan_reorder
=
p_sys
->
b_chan_reorder
=
aout_CheckChannelReorder
(
pi_channels_in
,
NULL
,
aout_CheckChannelReorder
(
pi_channels_in
,
NULL
,
p_sys
->
i_channel_mask
,
p_sys
->
i_channel_mask
,
...
@@ -216,10 +225,9 @@ static int Open( vlc_object_t * p_this )
...
@@ -216,10 +225,9 @@ static int Open( vlc_object_t * p_this )
msg_Dbg
(
p_demux
,
"channel mask: %x, reordering: %i"
,
msg_Dbg
(
p_demux
,
"channel mask: %x, reordering: %i"
,
p_sys
->
i_channel_mask
,
(
int
)
p_sys
->
b_chan_reorder
);
p_sys
->
i_channel_mask
,
(
int
)
p_sys
->
b_chan_reorder
);
}
}
p_sys
->
fmt
.
audio
.
i_physical_channels
=
p_sys
->
fmt
.
audio
.
i_physical_channels
=
p_sys
->
fmt
.
audio
.
i_original_channels
=
p_sys
->
fmt
.
audio
.
i_original_channels
=
p_sys
->
i_channel_mask
;
p_sys
->
i_channel_mask
;
}
if
(
p_sys
->
fmt
.
i_extra
>
0
)
if
(
p_sys
->
fmt
.
i_extra
>
0
)
{
{
...
...
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