[MPlayer-dev-eng] [PATCH] Fix wrong runtime and average bitrate for VBR MP3.

Benoît Thébaudeau benoit.thebaudeau at advansee.com
Fri Jan 13 21:47:36 CET 2012


Hi all,

According to http://www.mpgedit.org/mpgedit/mpeg_format/mpeghdr.htm, the MP3
frame size depends only on the MP3 Layer, while according to
http://www.codeproject.com/KB/audio-video/mpegaudioinfo.aspx#XINGHeader, the
size of the Layer III side information depends only on the MPEG version, so spf
can not be used by mp3_vbr_frames() to determine the Layer III side information
size. Fix this by using lsf instead.

Moreover, spf was not filled by mp_get_mp3_header() for NULL freq, which was an
issue for mp3_vbr_frames(). This is also fixed.

Signed-off-by: "Benoît Thébaudeau" <benoit.thebaudeau at advansee.com>

Best regards,
Benoît Thébaudeau
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2-fix-mp3-vbr.patch
Type: text/x-patch
Size: 7177 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20120113/bb7f083e/attachment.bin>


More information about the MPlayer-dev-eng mailing list