Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Maxwell <greg@xiph.org>2011-10-03 22:04:32 +0400
committerJean-Marc Valin <jmvalin@jmvalin.ca>2011-10-03 22:08:28 +0400
commit4a7c9859cbea913e2d024d523cc10f2bd955d540 (patch)
treeaeec8eb8b098349a7b1ed3f226af9cc32d53cc49 /silk/NSQ.c
parent1e0805d74f440adbf5829c8a8179fc30a24c5746 (diff)
Correct C99 undefined behavior in silk/NSQ.c, parallel change to 1ee139bc.
Diffstat (limited to 'silk/NSQ.c')
-rw-r--r--silk/NSQ.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/silk/NSQ.c b/silk/NSQ.c
index 8ed06d72..6bd39eb4 100644
--- a/silk/NSQ.c
+++ b/silk/NSQ.c
@@ -292,7 +292,7 @@ static inline void silk_noise_shape_quantizer(
/* Flip sign depending on dither */
r_Q10 = r_Q10 ^ dither;
- r_Q10 = silk_LIMIT_32( r_Q10, -31 << 10, 30 << 10 );
+ r_Q10 = silk_LIMIT_32( r_Q10, -(31 << 10), 30 << 10 );
/* Find two quantization level candidates and measure their rate-distortion */
q1_Q10 = silk_SUB32( r_Q10, offset_Q10 );