summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2017-10-08 03:26:30 -0400
committerJean-Marc Valin <jmvalin@jmvalin.ca>2017-10-08 03:26:30 -0400
commit43dfdc08ba57ce164e99e11226bcfad31db413e4 (patch)
tree9f2e1bef8e8c24356ad28dbde53e166c1aa30164
parent2da3721b16291b5a15928bb88691d8ee65e411e8 (diff)
downloadopus-43dfdc08ba57ce164e99e11226bcfad31db413e4.tar.gz
Fix entropy coder doc
Addresses issue https://github.com/xiph/opus/issues/54
-rw-r--r--celt/entdec.h2
-rw-r--r--celt/entenc.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/celt/entdec.h b/celt/entdec.h
index d8ab3187..025fc187 100644
--- a/celt/entdec.h
+++ b/celt/entdec.h
@@ -85,7 +85,7 @@ int ec_dec_icdf(ec_dec *_this,const unsigned char *_icdf,unsigned _ftb);
The bits must have been encoded with ec_enc_uint().
No call to ec_dec_update() is necessary after this call.
_ft: The number of integers that can be decoded (one more than the max).
- This must be at least one, and no more than 2**32-1.
+ This must be at least 2, and no more than 2**32-1.
Return: The decoded bits.*/
opus_uint32 ec_dec_uint(ec_dec *_this,opus_uint32 _ft);
diff --git a/celt/entenc.h b/celt/entenc.h
index 796bc4d5..f502eaf6 100644
--- a/celt/entenc.h
+++ b/celt/entenc.h
@@ -67,7 +67,7 @@ void ec_enc_icdf(ec_enc *_this,int _s,const unsigned char *_icdf,unsigned _ftb);
/*Encodes a raw unsigned integer in the stream.
_fl: The integer to encode.
_ft: The number of integers that can be encoded (one more than the max).
- This must be at least one, and no more than 2**32-1.*/
+ This must be at least 2, and no more than 2**32-1.*/
void ec_enc_uint(ec_enc *_this,opus_uint32 _fl,opus_uint32 _ft);
/*Encodes a sequence of raw bits in the stream.