Commit [a17518]  Maximize  Restore  History

Bug 865553 - Handle MPEG version 2 packet lengths. r=padenot

Previous code didn't adjust bitrate and scale factors correctly
for computing frame sizes on mpeg 2 and 2.5 files. See
http://blog.coryhill.net/2009/06/calculating-mp3-frame-length.html
for the extra factor of two.

Removes a case for handling length calculation for layer-1 files,
which we don't support.

Adds a tagless mpeg-2 test case for the new sniffer code.

Previous code didn't adjust bitrate and scale factors correctly
for computing frame sizes on mpeg 2 and 2.5 files. See
http://blog.coryhill.net/2009/06/calculating-mp3-frame-length.html
for the extra factor of two.

Removes a case for handling length calculation for layer-1 files,
which we don't support.

Adds a tagless mpeg-2 test case for the new sniffer code.

Ralph Giles Ralph Giles 2013-08-09

changed toolkit/components/mediasniffer/mp3sniff.c
added toolkit/components/mediasniffer/test/unit/data/detodos.mp3
changed toolkit/components/mediasniffer/test/unit/test_mediasniffer_ext.js
toolkit/components/mediasniffer/mp3sniff.c Diff Switch to side-by-side view
Loading...
toolkit/components/mediasniffer/test/unit/test_mediasniffer_ext.js Diff Switch to side-by-side view
Loading...

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks