Commit Graph

25 Commits

Author SHA1 Message Date
Robert O'Callahan
622145dd8d Bug 1048579. Always sniff for media loads. r=bzbarsky
--HG--
extra : rebase_source : 39b6d37dbbf138095856954bee583e84cfd971b5
2014-08-23 00:08:14 +12:00
Ryan VanderMeulen
fc020ce791 Backed out changeset ecf04c6eb4dd (bug 1048579) for xpcshell failures. 2014-08-22 10:08:10 -04:00
Robert O'Callahan
0850121797 Bug 1048579. Always sniff for media loads. r=bzbarsky
--HG--
extra : rebase_source : 067e99eaad781dec78a772405870b02c195a42e2
2014-08-23 00:08:14 +12:00
Birunthan Mohanathas
ff8ce9bd42 Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj 2014-04-27 03:06:00 -04:00
Paul Adenot
a1ff610699 Bug 967007 - Bump the sniffing limit for mp3. r=rillian 2014-02-03 16:55:34 +01:00
Birunthan Mohanathas
e81a8f702d Bug 828300 - Replace NS_ARRAY_LENGTH with mozilla::ArrayLength/MOZ_ARRAY_LENGTH. r=ehsan 2014-01-30 13:26:54 -05:00
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
Ryan VanderMeulen
30ab83ed87 Backed out changesets bde36c2eacc0 and 8dc40bbe844e (bug 862088) for causing bug 875769. 2013-05-25 09:21:29 -04:00
Ralph Giles
e77742990d Bug 862088 - Add raw mp3 sniffing.
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 copies of files in content/media/test
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.

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 copies of files in content/media/test
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.
2013-05-23 01:07:00 +08:00
Marco Chen
ea1cc23a55 Bug 859711 - [A/V] Add mp4 sniffer to recognizing isom/iso2 comptiable_brand. r=padenot 2013-05-07 10:17:34 +08:00
Honza Bambas
882732f18b Bug 843376 - nsMediaSniffer.cpp(13) : fatal error C1083: Cannot open include file: 'nestegg/nestegg.h', r=padenot 2013-02-21 14:27:00 +01:00
Paul Adenot
dc838f4df3 Bug 835381 - Use the new libnestegg API to sniff for WebM. r=kinetik 2013-02-12 22:15:55 +01:00
Mats Palmgren
6c53161814 Bug 786533 - Replace NS_MIN/NS_MAX with std::min/std::max and #include <algorithm> where needed. r=ehsan 2013-01-15 13:22:03 +01:00
Ehsan Akhgari
439bb83770 Bug 813433 - Make nsMediaSniffer accept null request arguments; r=bzbarsky
This patch will make the content sniffer useful to sniff the mimetype of
in-memory media buffers.
2012-11-20 00:01:30 -05:00
Paul Adenot
99acdc1176 Bug 789741 - Fix a crash in nsMediaSniffer::GetMIMETypeFromContent. r=bz 2012-09-10 09:57:17 -04:00
Paul Adenot
2ba4d61509 Bug 789077 - Sniff for a media only if the Content-Type is unknown or octet-stream. r=bz 2012-09-07 16:18:59 -07:00
Paul Adenot
da697c5cb4 Bug 789077 - Remove sniffing for mp3 without ID3 because of false positives. r=cpearce 2012-09-07 16:14:05 -07:00
Ehsan Akhgari
65c5e19c37 Bug 579517 follow-up: Remove NSPR types that crept in
--HG--
extra : rebase_source : 3fc28d51fcb5c63e417b0fe2b90fb6e1eb0cac63
2012-09-06 10:11:28 -04:00
Paul Adenot
e2aa98bcf3 Bug 567077 - Remove the classinfo stubs. r=peterv 2012-09-05 12:26:20 -07:00
Paul Adenot
2719cc62de Bug 567077 - Sniff types of media files that are served with no Content-Type. r=cpearce 2012-09-04 16:22:34 -07:00
Ryan VanderMeulen
07a63bd067 Backout bug 567077 for bustage. 2012-09-05 18:36:38 -04:00
Paul Adenot
7e9f1b3014 Bug 567077 - Remove the classinfo stubs. r=peterv 2012-09-05 12:26:20 -07:00
Paul Adenot
cce500079e Bug 567077 - Sniff types of media files that are served with no Content-Type. r=cpearce 2012-09-04 16:22:34 -07:00
Ed Morley
66bb79039e Backout ec46cfa51bf8, 4a54f06efee8, de811fbd27b0 & 67ea1314c777 (bug 567077) for causing bug 781141 2012-08-08 13:11:34 +01:00
Paul Adenot
6d3ce88e68 Bug 567077 - Sniff types of media files that are served with no Content-Type r=cpearce 2012-08-07 15:54:30 -07:00