Fix folding bug in draft too

This commit is contained in:
Jean-Marc Valin 2016-07-04 15:44:30 -04:00
parent c3563be66f
commit e30e9a7609

View file

@ -298,7 +298,7 @@ n2-n1);
while(M*eBands[--fold_start] > effective_lowband);
fold_end = lowband_offset-1;
- while(M*eBands[++fold_end] < effective_lowband+N);
+ while(++fold_end < i && M*eBands[++fold_end] < \
+ while(++fold_end < i && M*eBands[fold_end] < \
effective_lowband+N);
x_cm = y_cm = 0;
fold_i = fold_start; do {