shithub: opus

Download patch

ref: 9310096e3cdbdbf907347561e482501dc214436d
parent: b5077ef4d8590ed8cc492f725c7ca6fbec9fbf0c
author: Jean-Marc Valin <[email protected]>
date: Sun Jul 4 20:33:00 EDT 2010

Fix misleading comments about ec_{enc|dec}_tell()

--- a/libcelt/entdec.h
+++ b/libcelt/entdec.h
@@ -113,10 +113,7 @@
 /* Decode a bit that has a _prob/65536 probability of being a one */
 int ec_dec_bit_prob(ec_dec *_this,unsigned _prob);
 
-/*Returns the number of bits "used" by the decoded symbols so far.
-  The actual number of bits may be larger, due to rounding to whole bytes, or
-   smaller, due to trailing zeros that were be stripped, so this is not an
-   estimate of the true packet size.
+/*Returns the number of bits "used" by the encoded symbols so far.
   This same number can be computed by the encoder, and is suitable for making
    coding decisions.
   _b: The number of extra bits of precision to include.
--- a/libcelt/entenc.h
+++ b/libcelt/entenc.h
@@ -95,9 +95,6 @@
 void ec_enc_bit_prob(ec_enc *_this,int val,unsigned _prob);
 
 /*Returns the number of bits "used" by the encoded symbols so far.
-  The actual number of bits may be larger, due to rounding to whole bytes, or
-   smaller, due to trailing zeros that can be stripped, so this is not an
-   estimate of the true packet size.
   This same number can be computed by the decoder, and is suitable for making
    coding decisions.
   _b: The number of extra bits of precision to include.