Prevents remove_doubling() from considering negative pitch gains

This commit is contained in:
Jean-Marc Valin 2012-04-24 17:00:54 -04:00
parent 4f0c07f640
commit b3deb5342f

View file

@ -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