From cc889ed79aa44d623a4de7fc4a4afe40ff8c36d2 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Mon, 3 Apr 2023 17:21:12 +0000 Subject: [PATCH] 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 Reviewed-by: nephele Reviewed-by: waddlesplash --- src/data/mime_db/image/avif | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/mime_db/image/avif b/src/data/mime_db/image/avif index a6b78c8088..8025b20e5a 100644 --- a/src/data/mime_db/image/avif +++ b/src/data/mime_db/image/avif @@ -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";