Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(666)

Unified Diff: third_party/opus/src/src/opus.c

Issue 2962373002: [Opus] Update to v1.2.1 (Closed)
Patch Set: Pre-increment instead of post-increment Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/opus/src/src/mlp_train.c ('k') | third_party/opus/src/src/opus_compare.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/opus/src/src/opus.c
diff --git a/third_party/opus/src/src/opus.c b/third_party/opus/src/src/opus.c
index f76f125cfa300426798ec2c2a1a8c4a934204d58..cdbd13a11cd78d470a98154fc1ea1e8a6c3dcef3 100644
--- a/third_party/opus/src/src/opus.c
+++ b/third_party/opus/src/src/opus.c
@@ -107,7 +107,7 @@ OPUS_EXPORT void opus_pcm_soft_clip(float *_x, int N, int C, float *declip_mem)
/* Slightly boost "a" by 2^-22. This is just enough to ensure -ffast-math
does not cause output values larger than +/-1, but small enough not
to matter even for 24-bit output. */
- a += a*2.4e-7;
+ a += a*2.4e-7f;
if (x[i*C]>0)
a = -a;
/* Apply soft clipping */
« no previous file with comments | « third_party/opus/src/src/mlp_train.c ('k') | third_party/opus/src/src/opus_compare.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698