mime_db: Broaden AVIF filetype guess

The current version expects the first box to be exactly 32 bytes, but some
files found in the wild only have 28 bytes, so we now ignore the first four
bytes and it works.

Change-Id: I4c304bd6385bffd15f4adbb99cbf464f9767f7bf
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6302
Tested-by: Automation <automation@haiku-os.org>
Reviewed-by: nephele <nep@packageloss.eu>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
Emmanuel Gil Peyrot 2023-04-03 17:21:12 +00:00 committed by waddlesplash
parent c0a43216c6
commit cc889ed79a

View File

@ -3,7 +3,7 @@ resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime";
resource(1, "META:TYPE") "image/avif";
resource(2, "META:SNIFF_RULE") "0.50 \(\"\\000\\000\\000 ftypavif\"\)";
resource(2, "META:SNIFF_RULE") "0.50 [4]\(\"ftypavif\"\)";
resource(3, "META:S:DESC") #'MSDC' "AV1 Image File Format";