static VLC vlc_scalefactors;
static VLC vlc_spectral[11];
+static float cbrt_tab[1<<13];
static ChannelElement *get_che(AACContext *ac, int type, int elem_id)
{
ff_init_ff_sine_windows(10);
ff_init_ff_sine_windows( 7);
+ if (!cbrt_tab[(1<<13) - 1])
+ for (i = 0; i < 1<<13; i++)
+ cbrt_tab[i] = cbrtf(i) * i;
+
return 0;
}
return -1;
}
n = (1 << n) + get_bits(gb, n);
- coef[coef_tmp_idx + j] *= cbrtf(n) * n;
+ coef[coef_tmp_idx + j] *= cbrt_tab[n];
} else
coef[coef_tmp_idx + j] *= vq_ptr[j];
}