plugins/id3: parse VBR headers
authorLucas De Marchi <lucas.demarchi@intel.com>
Thu, 29 Aug 2013 12:51:07 +0000 (09:51 -0300)
committerLucas De Marchi <lucas.demarchi@intel.com>
Thu, 29 Aug 2013 12:55:44 +0000 (09:55 -0300)
commit1fe4f48441ede6855d586ed8505ce4691cb6f1f4
tree18489cda9ecd1f4edfea615bcc6792483659e298
parentcba414b84755dd0fa5b28cb188cefb978589237e
plugins/id3: parse VBR headers

Parse VBR headers: Xing and VBRI. We use the number of frames and stream
size we find in these headers in order to calculate length and bitrate.

We also parse the "Info" header, which is the same as "Xing", but in
this case we assume the file has constant bitrate.

Now the only case in which bitrate is wrong is when the file is VBR but
it has no headers to indicate so.
src/plugins/id3/id3.c