#include "avcodec.h"
#include "internal.h"
-#include "bitstream.h"
+#include "get_bits.h"
#include "qcelpdata.h"
gain[2] = gain[1];
gain[1] = 0.6*gain[0] + 0.4*gain[1];
}
- }else
+ }else if (q->bitrate != SILENCE)
{
if(q->bitrate == RATE_OCTAVE)
{
* @param lspf line spectral pair frequencies
* @param lpc linear predictive coding coefficients
*
- * @note: bandwith_expansion_coeff could be precalculated into a table
+ * @note: bandwidth_expansion_coeff could be precalculated into a table
* but it seems to be slower on x86
*
* TIA/EIA/IS-733 2.4.3.3.5
static void lspf2lpc(const float *lspf, float *lpc)
{
double lsf[10];
- double bandwith_expansion_coeff = QCELP_BANDWITH_EXPANSION_COEFF;
+ double bandwidth_expansion_coeff = QCELP_BANDWIDTH_EXPANSION_COEFF;
int i;
for (i=0; i<10; i++)
for (i=0; i<10; i++)
{
- lpc[i] *= bandwith_expansion_coeff;
- bandwith_expansion_coeff *= QCELP_BANDWITH_EXPANSION_COEFF;
+ lpc[i] *= bandwidth_expansion_coeff;
+ bandwidth_expansion_coeff *= QCELP_BANDWIDTH_EXPANSION_COEFF;
}
}