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
1ad2022a
Commit
1ad2022a
authored
Dec 11, 2005
by
Boris Dorès
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- correct calculation of the size of the overflow buffer
(fixes a crash with mono streams)
parent
3fbfb3d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
AUTHORS
AUTHORS
+2
-1
modules/audio_filter/channel_mixer/headphone.c
modules/audio_filter/channel_mixer/headphone.c
+3
-5
No files found.
AUTHORS
View file @
1ad2022a
...
...
@@ -150,7 +150,8 @@ E: babal(at)via.ecp.fr
C: babal
D: Win32 network input
D: Win32 interface
D: Headphone channel mixer
D: Headphone channel mixer, Dolby Surround decoder
D: Audio output core enhancements
S: France
N: Jean-Marc Dressler
...
...
modules/audio_filter/channel_mixer/headphone.c
View file @
1ad2022a
...
...
@@ -315,12 +315,10 @@ static int Init ( aout_filter_t * p_filter , struct aout_filter_sys_t * p_data
for
(
i
=
0
;
i
<
p_data
->
i_nb_atomic_operations
;
i
++
)
{
if
(
p_data
->
i_overflow_buffer_size
<
p_data
->
p_atomic_operations
[
i
].
i_delay
*
i_nb_channels
*
sizeof
(
float
)
)
<
p_data
->
p_atomic_operations
[
i
].
i_delay
*
2
*
sizeof
(
float
)
)
{
p_data
->
i_overflow_buffer_size
=
p_data
->
p_atomic_operations
[
i
].
i_delay
*
i_nb_channels
*
sizeof
(
float
);
=
p_data
->
p_atomic_operations
[
i
].
i_delay
*
2
*
sizeof
(
float
);
}
}
p_data
->
p_overflow_buffer
=
malloc
(
p_data
->
i_overflow_buffer_size
);
...
...
@@ -402,7 +400,7 @@ static int Create( vlc_object_t *p_this )
if
(
Init
(
p_filter
,
p_filter
->
p_sys
,
aout_FormatNbChannels
(
&
p_filter
->
input
)
,
p_filter
->
input
.
i_physical_channels
,
p_filter
->
input
.
i_rate
)
<
0
)
,
p_filter
->
input
.
i_rate
)
<
0
)
{
return
VLC_EGENERIC
;
}
...
...
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