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
4d6a9eaa
Commit
4d6a9eaa
authored
Nov 04, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trivial_mixer: fix arithmetic
parent
636b6c31
Changes
1
Show 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 @
4d6a9eaa
...
@@ -74,7 +74,7 @@ static block_t *Upmix( filter_t *p_filter, block_t *p_in_buf )
...
@@ -74,7 +74,7 @@ static block_t *Upmix( filter_t *p_filter, block_t *p_in_buf )
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
%
i_input_nb
];
p_src
+=
i_input_nb
;
p_src
+=
i_input_nb
;
p_dest
+=
i_output_nb
;
p_dest
+=
i_output_nb
;
...
@@ -100,7 +100,7 @@ static block_t *Downmix( filter_t *p_filter, block_t *p_buf )
...
@@ -100,7 +100,7 @@ static block_t *Downmix( filter_t *p_filter, block_t *p_buf )
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
];
p_src
+=
i_input_nb
;
p_src
+=
i_input_nb
;
p_dest
+=
i_output_nb
;
p_dest
+=
i_output_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