Displaying 2 results from an estimated 2 matches for "quant_coarse_energy".
2009 Dec 02
1
bug found in CELT 0.6.1, fix proposed.
...es.
The problems where observed when encoding 48kHz at 60kbs using the following parameters:
<rate> 48000
<channels> 1
<frame size> 1024
<bytes per packet> 160
At these settings nbEBands = 25. However the eMeans[] array as defined in the top of quant_bands.c and used in quant_coarse_energy() and unquant_coarse_energy() has only 24 members. Using the settings above, the code illegally reads the 25th member from random memory. If this memory is 0 as in the x86 implementations tested then there is no problem, but on MIPS it is not zero.
In case its is of use to anyone, I have include...
2011 Mar 03
0
[PATCH] Eliminate the ec_int32 and ec_uint32 typedefs.
...EC_CODE_BITS-1)-1<<1|1)
#endif
diff --git a/libcelt/quant_bands.c b/libcelt/quant_bands.c
index 9aa05fe..e007dcb 100644
--- a/libcelt/quant_bands.c
+++ b/libcelt/quant_bands.c
@@ -155,7 +155,7 @@ static int intra_decision(const celt_word16 *eBands, celt_word16 *oldEBands, int
static int quant_coarse_energy_impl(const CELTMode *m, int start, int end,
const celt_word16 *eBands, celt_word16 *oldEBands,
- ec_int32 budget, ec_int32 tell,
+ celt_int32 budget, celt_int32 tell,
const unsigned char *prob_model, celt_word16 *error, ec_enc *enc,
int _C, int LM, int intra, celt_wor...