plugins/id3: Add loop on frames to estimate bitrate
authorLucas De Marchi <lucas.demarchi@intel.com>
Fri, 30 Aug 2013 14:20:29 +0000 (11:20 -0300)
committerLucas De Marchi <lucas.demarchi@intel.com>
Fri, 30 Aug 2013 14:20:29 +0000 (11:20 -0300)
commitfbc94e14745cc1083980c09932712cfc9158b67d
tree45295b1fee88cf9b1eb884cc48f2a67f1bc7646a
parent1fe4f48441ede6855d586ed8505ce4691cb6f1f4
plugins/id3: Add loop on frames to estimate bitrate

Estimate the bitrate and length when there's no additional header we
can rely on to get these numbers. This is done by parsing the initial
frames of the file.

This has an impact on performance, since now we are parsing much more
than before. There's a define N_FRAMES_BITRATE_ESTIMATE and
N_FRAMES_CBR_ESTIMATE that need to be tuned in order to obtain the best
compromise between performance and accuracy.
src/plugins/id3/id3.c