Skip to content

Commit b7cda87

Browse files
authored
Merge pull request #104 from alexandergitter/fix-av1-webm
Fix detection of AV1 in WebM as video/webm
2 parents a056565 + d48a118 commit b7cda87

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

data/custom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
<match value="webm" type="string" offset="4:4096">
8484
<match value="V_VP8" type="string" offset="4:4096" />
8585
<match value="V_VP9" type="string" offset="4:4096" />
86+
<match value="V_AV1" type="string" offset="4:4096" />
8687
</match>
8788
</match>
8889
</match>

lib/marcel/tables.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2524,7 +2524,7 @@ module Marcel
25242524
['audio/mp4', [[4, b['ftypM4A ']], [4, b['ftypM4B ']], [4, b['ftypF4A ']], [4, b['ftypF4B ']]]],
25252525
['video/quicktime', [[4, b["moov\000"]], [4, b["mdat\000"]], [4, b["free\000"]], [4, b["skip\000"]], [4, b["pnot\000"]], [4, b['ftyp']], [0, b["\000\000\000\bwide"]]]],
25262526
['video/mpeg', [[0, b["\000\000\001\263"]], [0, b["\000\000\001\272"]]]],
2527-
['video/webm', [[0, b["\032E\337\243"], [[4..4096, b["B\202"], [[4..4096, b['webm'], [[4..4096, b['V_VP8']], [4..4096, b['V_VP9']]]]]]]]]],
2527+
['video/webm', [[0, b["\032E\337\243"], [[4..4096, b["B\202"], [[4..4096, b['webm'], [[4..4096, b['V_VP8']], [4..4096, b['V_VP9']], [4..4096, b['V_AV1']]]]]]]]]],
25282528
['video/x-matroska', [[0, b["\032E\337\243\223B\202\210matroska"]]]],
25292529
['video/x-flv', [[0, b['FLV']]]],
25302530
['audio/mpeg', [[0, b["\377\362"]], [0, b["\377\363"]], [0, b["\377\364"]], [0, b["\377\365"]], [0, b["\377\366"]], [0, b["\377\367"]], [0, b["\377\372"]], [0, b["\377\373"]], [0, b["\377\374"]], [0, b["\377\375"]], [0, b["\377\343"]], [0, b["\377\377"]], [0, b['ID3']], [0, b["(?:\\\\015\\\\012|\\\\000{1,1024})(?:\\\\377[\\\\343\\\\362\\\\363\\\\364\\\\365\\\\366\\\\367\\\\370\\\\371\\\\372\\\\373\\\\374\\\\375\\\\376\\\\377]|ID3)"]]]],
1 KB
Binary file not shown.

0 commit comments

Comments
 (0)