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
4e63463a
Commit
4e63463a
authored
Nov 03, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trivial_mixer: fix upmix/downmix
parent
7c653e6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
modules/audio_filter/channel_mixer/trivial.c
modules/audio_filter/channel_mixer/trivial.c
+2
-2
No files found.
modules/audio_filter/channel_mixer/trivial.c
View file @
4e63463a
...
@@ -71,7 +71,7 @@ static block_t *Upmix( filter_t *p_filter, block_t *p_in_buf )
...
@@ -71,7 +71,7 @@ static block_t *Upmix( filter_t *p_filter, block_t *p_in_buf )
float
*
p_dest
=
(
float
*
)
p_out_buf
->
p_buffer
;
float
*
p_dest
=
(
float
*
)
p_out_buf
->
p_buffer
;
const
float
*
p_src
=
(
float
*
)
p_in_buf
->
p_buffer
;
const
float
*
p_src
=
(
float
*
)
p_in_buf
->
p_buffer
;
for
(
size_t
i
=
0
;
i
<
p_in_buf
->
i_nb_samples
;
i
--
)
for
(
size_t
i
=
0
;
i
<
p_in_buf
->
i_nb_samples
;
i
++
)
{
{
for
(
unsigned
j
=
0
;
j
<
i_output_nb
;
j
++
)
for
(
unsigned
j
=
0
;
j
<
i_output_nb
;
j
++
)
p_dest
[
j
]
=
p_src
[
j
];
p_dest
[
j
]
=
p_src
[
j
];
...
@@ -97,7 +97,7 @@ static block_t *Downmix( filter_t *p_filter, block_t *p_buf )
...
@@ -97,7 +97,7 @@ static block_t *Downmix( filter_t *p_filter, block_t *p_buf )
float
*
p_dest
=
(
float
*
)
p_buf
->
p_buffer
;
float
*
p_dest
=
(
float
*
)
p_buf
->
p_buffer
;
const
float
*
p_src
=
p_dest
;
const
float
*
p_src
=
p_dest
;
for
(
size_t
i
=
0
;
i
<
p_buf
->
i_nb_samples
;
i
--
)
for
(
size_t
i
=
0
;
i
<
p_buf
->
i_nb_samples
;
i
++
)
{
{
for
(
unsigned
j
=
0
;
j
<
i_output_nb
;
j
++
)
for
(
unsigned
j
=
0
;
j
<
i_output_nb
;
j
++
)
p_dest
[
j
]
=
p_src
[
j
%
i_input_nb
];
p_dest
[
j
]
=
p_src
[
j
%
i_input_nb
];
...
...
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