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
18a7aaca
Commit
18a7aaca
authored
Oct 12, 2015
by
Emeric Grange
Committed by
Jean-Baptiste Kempf
Nov 26, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Audio: do not hardcode audio channel limits into the decoder/demuxer
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
d03be6c0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
modules/codec/araw.c
modules/codec/araw.c
+2
-2
modules/codec/g711.c
modules/codec/g711.c
+2
-2
modules/demux/wav.c
modules/demux/wav.c
+1
-1
No files found.
modules/codec/araw.c
View file @
18a7aaca
...
...
@@ -246,8 +246,8 @@ static int DecoderOpen( vlc_object_t *p_this )
if
(
p_dec
->
fmt_in
.
audio
.
i_channels
<=
0
||
p_dec
->
fmt_in
.
audio
.
i_channels
>
AOUT_CHAN_MAX
)
{
msg_Err
(
p_dec
,
"bad channels count (1-
9
): %i"
,
p_dec
->
fmt_in
.
audio
.
i_channels
);
msg_Err
(
p_dec
,
"bad channels count (1-
%i
): %i"
,
AOUT_CHAN_MAX
,
p_dec
->
fmt_in
.
audio
.
i_channels
);
return
VLC_EGENERIC
;
}
...
...
modules/codec/g711.c
View file @
18a7aaca
...
...
@@ -162,8 +162,8 @@ static int DecoderOpen( vlc_object_t *p_this )
if
(
p_dec
->
fmt_in
.
audio
.
i_channels
<=
0
||
p_dec
->
fmt_in
.
audio
.
i_channels
>
AOUT_CHAN_MAX
)
{
msg_Err
(
p_dec
,
"bad channels count (1-
9
): %i"
,
p_dec
->
fmt_in
.
audio
.
i_channels
);
msg_Err
(
p_dec
,
"bad channels count (1-
%i
): %i"
,
AOUT_CHAN_MAX
,
p_dec
->
fmt_in
.
audio
.
i_channels
);
return
VLC_EGENERIC
;
}
...
...
modules/demux/wav.c
View file @
18a7aaca
...
...
@@ -272,7 +272,7 @@ static int Open( vlc_object_t * p_this )
}
}
else
if
(
GetWLE
(
&
p_wf
->
wFormatTag
)
==
WAVE_FORMAT_PCM
&&
p_sys
->
fmt
.
audio
.
i_channels
>
2
&&
p_sys
->
fmt
.
audio
.
i_channels
<=
9
)
p_sys
->
fmt
.
audio
.
i_channels
>
2
&&
p_sys
->
fmt
.
audio
.
i_channels
<=
AOUT_CHAN_MAX
)
{
for
(
int
i
=
0
;
i
<
p_sys
->
fmt
.
audio
.
i_channels
;
i
++
)
p_sys
->
i_channel_mask
|=
pi_channels_aout
[
i
];
...
...
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