Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Mark Harris
Opus
Commits
e5ad2616
Unverified
Commit
e5ad2616
authored
Sep 14, 2016
by
Jean-Marc Valin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevents ridiculously large gains from causing inf/NaNs in float decoder
parent
70e3c348
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
celt/bands.c
celt/bands.c
+1
-1
No files found.
celt/bands.c
View file @
e5ad2616
...
...
@@ -226,7 +226,7 @@ void denormalise_bands(const CELTMode *m, const celt_norm * OPUS_RESTRICT X,
band_end
=
M
*
eBands
[
i
+
1
];
lg
=
SATURATE16
(
ADD32
(
bandLogE
[
i
],
SHL32
((
opus_val32
)
eMeans
[
i
],
6
)));
#ifndef FIXED_POINT
g
=
celt_exp2
(
lg
);
g
=
celt_exp2
(
MIN32
(
32
.
f
,
lg
)
)
;
#else
/* Handle the integer part of the log energy */
shift
=
16
-
(
lg
>>
DB_SHIFT
);
...
...
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