Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/celt-0.7.0.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Marc Valin <jean-marc.valin@usherbrooke.ca>2009-10-24 19:24:34 +0400
committerJean-Marc Valin <jean-marc.valin@usherbrooke.ca>2009-10-24 19:24:34 +0400
commita3803a98afeb8bddfee2038ecdf0623124d06d46 (patch)
tree676c258137f59e2cd25cca3a63967c835e55ee6c
parentf81edea0123ea0711f46e602afd56379d3f41de1 (diff)
misc minor changes
-rw-r--r--Doxyfile2
-rw-r--r--Doxyfile.devel2
-rw-r--r--libcelt/celt.h8
-rw-r--r--libcelt/entdec.c2
-rw-r--r--libcelt/vq.c1
5 files changed, 8 insertions, 7 deletions
diff --git a/Doxyfile b/Doxyfile
index 1b7b6f7..0f3b527 100644
--- a/Doxyfile
+++ b/Doxyfile
@@ -5,7 +5,7 @@
#---------------------------------------------------------------------------
DOXYFILE_ENCODING = UTF-8
PROJECT_NAME = CELT
-PROJECT_NUMBER = 0.6.1
+PROJECT_NUMBER = 0.7.0
OUTPUT_DIRECTORY = doc/API
CREATE_SUBDIRS = NO
OUTPUT_LANGUAGE = English
diff --git a/Doxyfile.devel b/Doxyfile.devel
index 255eeea..aa59518 100644
--- a/Doxyfile.devel
+++ b/Doxyfile.devel
@@ -5,7 +5,7 @@
#---------------------------------------------------------------------------
DOXYFILE_ENCODING = UTF-8
PROJECT_NAME = CELT
-PROJECT_NUMBER = 0.6.1
+PROJECT_NUMBER = 0.7.0
OUTPUT_DIRECTORY = doc/devel
CREATE_SUBDIRS = NO
OUTPUT_LANGUAGE = English
diff --git a/libcelt/celt.h b/libcelt/celt.h
index 1c0e158..9e59b43 100644
--- a/libcelt/celt.h
+++ b/libcelt/celt.h
@@ -270,10 +270,14 @@ EXPORT int celt_decode(CELTDecoder *st, const unsigned char *data, int len, celt
EXPORT int celt_decoder_ctl(CELTDecoder * st, int request, ...);
-/* @} */
-
+/** Returns the English string that corresponds to an error code
+ * @param error Error code (negative for an error, 0 for success
+ * @return Constant string (must NOT be freed)
+ */
EXPORT const char *celt_strerror(int error);
+/* @} */
+
#ifdef __cplusplus
}
diff --git a/libcelt/entdec.c b/libcelt/entdec.c
index 467750b..5b8846b 100644
--- a/libcelt/entdec.c
+++ b/libcelt/entdec.c
@@ -67,7 +67,6 @@ int ec_byte_read1(ec_byte_buffer *_b){
ec_uint32 ec_dec_bits(ec_dec *_this,int _ftb){
ec_uint32 t;
unsigned s;
- unsigned ft;
t=0;
while(_ftb>EC_UNIT_BITS){
s=ec_decode_raw(_this,EC_UNIT_BITS);
@@ -75,7 +74,6 @@ ec_uint32 ec_dec_bits(ec_dec *_this,int _ftb){
t=t<<EC_UNIT_BITS|s;
_ftb-=EC_UNIT_BITS;
}
- ft=1U<<_ftb;
s=ec_decode_raw(_this,_ftb);
/*ec_dec_update(_this,s,s+1,ft);*/
t=t<<_ftb|s;
diff --git a/libcelt/vq.c b/libcelt/vq.c
index 18de31b..a39858c 100644
--- a/libcelt/vq.c
+++ b/libcelt/vq.c
@@ -162,7 +162,6 @@ void alg_quant(celt_norm *X, int N, int K, int spread, ec_enc *enc)
if (K > (N>>1))
{
celt_word16 rcp;
- sum=0;
j=0; do {
sum += X[j];
} while (++j<N);