mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Ogg has a 5-byte signature, but pattern did not include NUL
This commit is contained in:
parent
54b07bae91
commit
ab43e2b028
1 changed files with 2 additions and 2 deletions
|
@ -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: &[]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue