Ogg has a 5-byte signature, but pattern did not include NUL

This commit is contained in:
Jonathan Giddy 2016-02-19 16:51:40 +00:00
parent 54b07bae91
commit ab43e2b028

View file

@ -741,8 +741,8 @@ impl ByteMatcher {
//The string "OggS" followed by NUL, the Ogg container signature.
fn application_ogg() -> ByteMatcher {
ByteMatcher {
pattern: b"OggS",
mask: b"\xFF\xFF\xFF\xFF",
pattern: b"OggS\x00",
mask: b"\xFF\xFF\xFF\xFF\xFF",
content_type: ("application", "ogg"),
leading_ignore: &[]
}