diff --git a/libcelt/vq.c b/libcelt/vq.c index 3e1538cf..63cb4307 100644 --- a/libcelt/vq.c +++ b/libcelt/vq.c @@ -286,9 +286,14 @@ static void fold(const CELTMode *m, int N, celt_norm_t *Y, celt_norm_t * restric const int C = CHANNELS(m); int id = N0 % (C*B); /* Here, we assume that id will never be greater than N0, i.e. that - no band is wider than N0. */ - for (j=0;jN0) + for (j=0;j