Displaying 3 results from an estimated 3 matches for "get_required_bit".
Did you mean:
get_required_bits
2009 Apr 11
1
get_required_bits32() and alloca() -> corrupted stack
HiI'm trying to run CELT on Win32 but I'm running into some corrupted stack errors when using alloca(). When get_required_bits32() (in file cwrs.c:308) is called from get_required_bits() (in file cwrs.c:328) the 'K' parameter is 1 which means that the uint32 which is allocated on the stack only has 3 bytes instead of 4. This results in a corrupted stack in the following call to log2_frac().Shouldn't the line c...
2010 Dec 03
0
memory violation in mode_create() -- SOLVED.
hi Jean-Marc,
the memory after the allocated space is definitely destroyed. It took me some
time to find out why. I expected local arrays to be allocated on stack, not on
the heap. The function get_required_bits allocates a local array uint32[] which
will be located on heap right after the array fromcompute_pulse_cache(), what
made me think it was written behind its end.
I am sorry for the panic !
?
best regards,
Marko.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: htt...
2011 Mar 03
0
[PATCH] Eliminate the ec_int32 and ec_uint32 typedefs.
...OG(val);
diff --git a/libcelt/cwrs.h b/libcelt/cwrs.h
index 1224a26..443213f 100644
--- a/libcelt/cwrs.h
+++ b/libcelt/cwrs.h
@@ -35,7 +35,7 @@
#include "entenc.h"
#include "entdec.h"
-int log2_frac(ec_uint32 val, int frac);
+int log2_frac(celt_uint32 val, int frac);
void get_required_bits(celt_int16 *bits, int N, int K, int frac);
diff --git a/libcelt/ecintrin.h b/libcelt/ecintrin.h
index 9222a3c..1a7f168 100644
--- a/libcelt/ecintrin.h
+++ b/libcelt/ecintrin.h
@@ -26,6 +26,7 @@
*/
/*Some common macros for potential platform-specific optimization.*/
+#include "celt_types...