gecko/toolkit/components/mediasniffer
Ralph Giles 8eecb8487d Bug 862088 - Add raw mp3 sniffing. r=padenot
Attempt to sniff raw mp3 with no id3 tag by looking for a header
followed by a second header at the expected offset from the packet
length.

Adds mp3 sniffing with and without id3 tags to the mediasniffer
xpcshell tests. These files are truncated to 512 bytes. Our method
can require up to 1.5k of data, but these have 208/209 byte packets
so sniffing still works.

notags-bad.mp3 has a corrupt header, and verifies sniffing fails.
notags-scan.mp3 has garbage before the header, and verifies sniffing fails.
he_free.mp is a vbr test vector which isn't sniffable with this method.
fl10.mp2 is an mp2 file, and verifies sniffing fails.
ff-inst.exe verifies bug 875769 doesn't regress.
2013-06-04 12:12:00 -07:00
..
test Bug 862088 - Add raw mp3 sniffing. r=padenot 2013-06-04 12:12:00 -07:00
Makefile.in Bug 864774 - Part 2: Move CPPSRCS to moz.build as CPP_SOURCES; r=joey CLOSED TREE 2013-04-23 17:54:15 -04:00
moz.build Bug 862088 - Add raw mp3 sniffing. r=padenot 2013-06-04 12:12:00 -07:00
mp3sniff.c Bug 862088 - Add raw mp3 sniffing. r=padenot 2013-06-04 12:12:00 -07:00
mp3sniff.h Bug 862088 - Add raw mp3 sniffing. r=padenot 2013-06-04 12:12:00 -07:00
nsMediaSniffer.cpp Bug 862088 - Add raw mp3 sniffing. r=padenot 2013-06-04 12:12:00 -07:00
nsMediaSniffer.h Bug 818817 - Fix some compiler warnings, r=Ms2ger 2012-12-09 22:53:19 +05:30
nsMediaSnifferModule.cpp