Displaying 1 result from an estimated 1 matches for "ec_byte_readinit".
2008 Dec 21
0
[PATCH] Fix ectest to not check a case which isn't guaranteed to work, and which we don't use.
...rtions(+), 3 deletions(-)
diff --git a/libcelt/entdec.c b/libcelt/entdec.c
index 555543f..284ce39 100644
--- a/libcelt/entdec.c
+++ b/libcelt/entdec.c
@@ -5,6 +5,7 @@
#include <stddef.h>
#include "entdec.h"
#include "os_support.h"
+#include "arch.h"
void ec_byte_readinit(ec_byte_buffer *_b,unsigned char *_buf,long _bytes){
@@ -106,6 +107,8 @@ ec_uint32 ec_dec_uint(ec_dec *_this,ec_uint32 _ft){
unsigned s;
int ftb;
t=0;
+ /*In order to optimize EC_ILOG(), it is undefined for the value 0.*/
+ celt_assert(_ft>1);
_ft--;
ftb=EC_ILOG(_ft);...