Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Mark Harris
Opus
Commits
9edb7b42
Commit
9edb7b42
authored
Jun 15, 2009
by
Jean-Marc Valin
Browse files
This fixes a folding issue with stereo
parent
08a82ffb
Changes
1
Hide whitespace changes
Inline
Side-by-side
libcelt/vq.c
View file @
9edb7b42
...
...
@@ -341,11 +341,11 @@ static void fold(const CELTMode *m, int N, celt_norm_t *Y, celt_norm_t * restric
{
int
j
;
const
int
C
=
CHANNELS
(
m
);
int
id
=
N0
%
(
C
*
B
);
int
id
=
(
N0
*
C
)
%
(
C
*
B
);
/* Here, we assume that id will never be greater than N0, i.e. that
no band is wider than N0. In the unlikely case it happens, we set
everything to zero */
if
(
id
+
C
*
N
>
N0
)
if
(
id
+
C
*
N
>
N0
*
C
)
for
(
j
=
0
;
j
<
C
*
N
;
j
++
)
P
[
j
]
=
0
;
else
...
...
Write
Preview
Supports
Markdown
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