diff options
author | Koen Vos <koen.vos@skype.net> | 2011-10-06 13:38:26 -0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2011-10-06 13:38:26 -0400 |
commit | 888756691836ca8ce419a870a768f910330fb9d1 (patch) | |
tree | 9cf2a47be95f56c4c71dc49cdf7da7fdd9cb6bb9 /silk/decode_pitch.c | |
parent | 480ba7034810fec56625dcd9ceeeb01d75c8d755 (diff) | |
download | opus-888756691836ca8ce419a870a768f910330fb9d1.tar.gz |
SILK update
Simplifies mono/stereo switching in SILK
Fixes a quantization mismatch between encoder and decoder
Constrains the pitch lags in the same way in the encoder and decoder
Diffstat (limited to 'silk/decode_pitch.c')
-rw-r--r-- | silk/decode_pitch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/silk/decode_pitch.c b/silk/decode_pitch.c index 6aeb7ab2..bb21bc75 100644 --- a/silk/decode_pitch.c +++ b/silk/decode_pitch.c @@ -67,7 +67,7 @@ void silk_decode_pitch( } min_lag = silk_SMULBB( PE_MIN_LAG_MS, Fs_kHz ); - max_lag = silk_SMULBB( PE_MAX_LAG_MS, Fs_kHz ); + max_lag = silk_SMULBB( PE_MAX_LAG_MS, Fs_kHz ) - 1; lag = min_lag + lagIndex; for( k = 0; k < nb_subfr; k++ ) { |