ref: f93d81b15e6e98f3f07af868a687d82a894d8f18
parent: fd386fd9cb4a7deead6eb6ee532cc30da7a156b6
author: Gregory Maxwell <[email protected]>
date: Sat Aug 6 20:57:31 EDT 2011
Correct allocation tilt estimation in the CELT encoder for stereo. Remove a redundant negative length check in celt_decode.
--- a/libcelt/celt.c
+++ b/libcelt/celt.c
@@ -839,7 +839,7 @@
{
diff += bandLogE[i+c*m->nbEBands]*(opus_int32)(2+2*i-m->nbEBands);
}
- } while (++c<0);
+ } while (++c<C);
diff /= C*(end-1);
/*printf("%f\n", diff);*/
if (diff > QCONST16(2.f, DB_SHIFT))
@@ -2363,10 +2363,6 @@
celt_decode_lost(st, pcm, N, LM);
RESTORE_STACK;
return frame_size/st->downsample;
- }
- if (len<0) {
- RESTORE_STACK;
- return CELT_BAD_ARG;
}
if (dec == NULL)