ref: f892d5f68e1ee6513d03da1dc9deae5af804339b
parent: 51891c9d5c877e617de113abb627e1bb6b3258ee
author: Jean-Marc Valin <[email protected]>
date: Tue Jun 10 19:46:12 EDT 2008
Turns out maxK and maxM were also inverted in fits_in64()
--- a/libcelt/cwrs.c
+++ b/libcelt/cwrs.c
@@ -119,15 +119,15 @@
int fits_in64(int _n, int _m)
{
static const celt_int16_t maxN[28] = {
- 255, 255, 255, 255, 255, 255, 255, 255,
- 255, 255, 245, 166, 122, 94, 77, 64,
- 56, 49, 44, 40, 37, 34, 32, 30,
- 29, 27, 26, 25};
- static const celt_int16_t maxM[28] = {
255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 178, 129, 100, 81, 68, 58,
51, 46, 42, 38, 36, 33, 31, 30,
28, 27, 26, 25};
+ static const celt_int16_t maxM[28] = {
+ 255, 255, 255, 255, 255, 255, 255, 255,
+ 255, 255, 245, 166, 122, 94, 77, 64,
+ 56, 49, 44, 40, 37, 34, 32, 30,
+ 29, 27, 26, 25};
if (_n>=27)
{
if (_m>=27)