shithub: opus

Download patch

ref: bbe6df88ed3b43d5cf632e16a8881482fa5337d3
parent: 276e6afc03b93dc6d8e6df1e59502aaa9ff80379
author: Jean-Marc Valin <[email protected]>
date: Sat Feb 2 16:05:11 EST 2008

Fix reporting of bit-rate in decoder

--- a/tools/celtdec.c
+++ b/tools/celtdec.c
@@ -582,7 +582,7 @@
                   }
 
                   if (print_bitrate) {
-                     celt_int32_t tmp=40;
+                     celt_int32_t tmp=op.bytes;
                      char ch=13;
                      fputc (ch, stderr);
                      fprintf (stderr, "Bitrate in use: %d bytes/packet     ", tmp);