From 89cc64ae2bd9e21b1388344bf09dad74fab28498 Mon Sep 17 00:00:00 2001 From: Pascal Abresch Date: Sat, 12 Oct 2019 18:17:48 +0200 Subject: [PATCH] fix detection of video/mp4 files via sniffer rule Fixes #15297 --- src/data/mime_db/video/mp4 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/data/mime_db/video/mp4 b/src/data/mime_db/video/mp4 index 034f072827..68ca185ab9 100644 --- a/src/data/mime_db/video/mp4 +++ b/src/data/mime_db/video/mp4 @@ -12,4 +12,5 @@ resource(3, "META:EXTENS") message(234) { "type" = "video/mp4" }; -resource(4, "META:SNIFF_RULE") "0.60 (\"\\000\\000\\000\\034ftypmp42\")"; +resource(4, "META:SNIFF_RULE") "0.60 [4](-i \"ftyp\")[8](-i \"isom\" | \"iso2\" | \"mmp4\" | \"mp41\" | \"mp42\") "; +// note: isom and iso2 as major type is against what iso sais, but these exist in the wild, thus they are here.