зеркало из https://github.com/mozilla/gecko-dev.git
Bug 789077 - Remove sniffing for mp3 without ID3 because of false positives. r=cpearce
This commit is contained in:
Родитель
5c5be9d885
Коммит
7ab1a757ed
|
@ -162,8 +162,6 @@ var gSnifferTests = [
|
|||
{ name:"320x240.ogv", type:"video/ogg", width:320, height:240, duration:0.233, size:28942 },
|
||||
{ name:"seek.webm", type:"video/webm", duration:3.966, size:215529 },
|
||||
{ name:"short.mp4", type:"video/mp4", duration:0.2, size:29435},
|
||||
// A mp3 file without id3 tags.
|
||||
{ name:"notags.mp3", type:"audio/mpeg", duration:0.28, size:2506},
|
||||
// A mp3 file with id3 tags.
|
||||
{ name:"id3tags.mp3", type:"audio/mpeg", duration:0.28, size:3530},
|
||||
{ name:"bogus.duh", type:"bogus/duh" }
|
||||
|
|
|
@ -27,8 +27,6 @@ nsMediaSniffer::nsMediaSnifferEntry nsMediaSniffer::sSnifferEntries[] = {
|
|||
PATTERN_ENTRY("\xFF\xFF\xFF\xFF\x00\x00\x00\x00\xFF\xFF\xFF\xFF", "RIFF\x00\x00\x00\x00WAVE", AUDIO_WAV),
|
||||
// WebM
|
||||
PATTERN_ENTRY("\xFF\xFF\xFF\xFF", "\x1A\x45\xDF\xA3", VIDEO_WEBM),
|
||||
// mp3 without ID3 tags.
|
||||
PATTERN_ENTRY("\xFF\xFB", "\xFF\xFA", AUDIO_MP3),
|
||||
// mp3 with ID3 tags, the string "ID3".
|
||||
PATTERN_ENTRY("\xFF\xFF\xFF", "ID3", AUDIO_MP3)
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче