xiph
/
opus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
4f0c07f
)
Prevents remove_doubling() from considering negative pitch gains
author
Jean-Marc Valin
<jmvalin@jmvalin.ca>
Tue, 24 Apr 2012 21:00:54 +0000 (17:00 -0400)
committer
Jean-Marc Valin
<jmvalin@jmvalin.ca>
Tue, 24 Apr 2012 21:00:54 +0000 (17:00 -0400)
celt/pitch.c
patch
|
blob
|
history
diff --git
a/celt/pitch.c
b/celt/pitch.c
index
5b0cfb6
..
29e4bd1
100644
(file)
--- a/
celt/pitch.c
+++ b/
celt/pitch.c
@@
-365,6
+365,7
@@
opus_val16 remove_doubling(opus_val16 *x, int maxperiod, int minperiod,
g = g1;
}
}
+ best_xy = MAX32(0, best_xy);
if (best_yy <= best_xy)
pg = Q15ONE;
else