Fix reporting of bit-rate in decoder
authorJean-Marc Valin <jean-marc.valin@usherbrooke.ca>
Sat, 2 Feb 2008 10:05:11 +0000 (21:05 +1100)
committerJean-Marc Valin <jean-marc.valin@usherbrooke.ca>
Sat, 2 Feb 2008 10:05:11 +0000 (21:05 +1100)
tools/celtdec.c

index 0806243..0e04081 100644 (file)
@@ -582,7 +582,7 @@ int main(int argc, char **argv)
                   }
 
                   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);