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:
authorKoen Vos <koen.vos@skype.net>2011-10-09 20:53:59 +0400
committerJean-Marc Valin <jmvalin@jmvalin.ca>2011-10-09 20:53:59 +0400
commit42f1e3d6a7251bc78e6c5a43d268994a02667798 (patch)
tree0c36a7997ee7fe519dbe0fd45730a8750b9f1841 /silk/decode_pitch.c
parent1f65994ef428520534630d5d706c91fb1d690938 (diff)
Two minor SILK fixes
- increases the max pitch lag by 1 (the thing Tim pointed out). this brings the decoder in sync with the old one - avoids that the first stereo frame is collapsed to mono
Diffstat (limited to 'silk/decode_pitch.c')
-rw-r--r--silk/decode_pitch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/silk/decode_pitch.c b/silk/decode_pitch.c
index bb21bc75..6aeb7ab2 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 ) - 1;
+ max_lag = silk_SMULBB( PE_MAX_LAG_MS, Fs_kHz );
lag = min_lag + lagIndex;
for( k = 0; k < nb_subfr; k++ ) {