ref: b3deb5342f54a1b09a5d301ae937914320691f2c
parent: 4f0c07f640964ec75b6643fa09ca1290a01f1076
author: Jean-Marc Valin <[email protected]>
date: Tue Apr 24 13:00:54 EDT 2012
Prevents remove_doubling() from considering negative pitch gains
--- a/celt/pitch.c
+++ b/celt/pitch.c
@@ -365,6 +365,7 @@
g = g1;
}
}
+ best_xy = MAX32(0, best_xy);
if (best_yy <= best_xy)
pg = Q15ONE;
else