зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1195723: [flac] P10. Add media sniffer for flac file. r=kamidphish
This only supports flac with a STREAMINFO header. MozReview-Commit-ID: FaT9N6xJDPY --HG-- extra : rebase_source : faf16192bf2ca57a9ca6ea6061f1436f7b032b00
This commit is contained in:
Родитель
0b8aa201dd
Коммит
2d2fb06c87
|
@ -87,6 +87,7 @@
|
|||
#define AUDIO_3GPP2 "audio/3gpp2"
|
||||
#define AUDIO_MIDI "audio/x-midi"
|
||||
#define AUDIO_MATROSKA "audio/x-matroska"
|
||||
#define AUDIO_FLAC "audio/flac"
|
||||
|
||||
#define BINARY_OCTET_STREAM "binary/octet-stream"
|
||||
|
||||
|
|
|
@ -33,7 +33,9 @@ nsMediaSnifferEntry nsMediaSniffer::sSnifferEntries[] = {
|
|||
// The string RIFF, followed by four bytes, followed by the string WAVE
|
||||
PATTERN_ENTRY("\xFF\xFF\xFF\xFF\x00\x00\x00\x00\xFF\xFF\xFF\xFF", "RIFF\x00\x00\x00\x00WAVE", AUDIO_WAV),
|
||||
// mp3 with ID3 tags, the string "ID3".
|
||||
PATTERN_ENTRY("\xFF\xFF\xFF", "ID3", AUDIO_MP3)
|
||||
PATTERN_ENTRY("\xFF\xFF\xFF", "ID3", AUDIO_MP3),
|
||||
// FLAC with standard header
|
||||
PATTERN_ENTRY("\xFF\xFF\xFF\xFF", "fLaC", AUDIO_FLAC)
|
||||
};
|
||||
|
||||
// For a complete list of file types, see http://www.ftyps.com/index.html
|
||||
|
|
Загрузка…
Ссылка в новой задаче