Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/matchers/audio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ pub fn is_mp3(buf: &[u8]) -> bool {
buf.len() > 2
&& ((buf[0] == 0x49 && buf[1] == 0x44 && buf[2] == 0x33) // ID3v2
// Final bit (has crc32) may be or may not be set.
|| (buf[0] == 0xFF && buf[1] == 0xFB))
// ID3V1 Support
|| (buf[0] == 0xFF && buf[1] == 0xFB)
|| (buf[0] == 0xFF && buf[1] == 0xF3)
|| (buf[0] == 0xFF && buf[1] == 0xF2))
}

/// Returns whether a buffer is M4A data.
Expand Down