ref: 14da3acdab344bddad2fce36d3f712b416381ad1
parent: 533fb3558f5ee48fb1df85a00206d16e2b2b9289
author: robs <robs>
date: Fri Feb 18 09:11:59 EST 2011
read a bit more audio (650ms) before concluding CBR
--- a/src/mp3-util.h
+++ b/src/mp3-util.h
@@ -217,7 +217,7 @@
else vbr |= mad_header.bitrate != initial_bitrate;
/* If not VBR, we can time just a few frames then extrapolate */
- if (++frames == 10 && !vbr) {
+ if (++frames == 25 && !vbr) {
struct stat filestat;
fstat(fileno(fp), &filestat);
mad_timer_mult(&time, (double)(filestat.st_size - tagsize) / consumed);