Ticket #15297: 0001-fix-detection-of-video-mp4-files-via-sniffer-rule.patch

File 0001-fix-detection-of-video-mp4-files-via-sniffer-rule.patch, 882 bytes (added by nephele, 5 years ago)

Patch

  • src/data/mime_db/video/mp4

    From c1ee053f7c3b8456254a2d062405139a175f838d Mon Sep 17 00:00:00 2001
    From: Pascal Abresch <nep@packageloss.eu>
    Date: Sat, 12 Oct 2019 18:17:48 +0200
    Subject: [PATCH] fix detection of video/mp4 files via sniffer rule
    
    ---
     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 034f0728..68ca185a 100644
    a b resource(3, "META:EXTENS") message(234) {  
    1212    "type" = "video/mp4"
    1313};
    1414
    15 resource(4, "META:SNIFF_RULE") "0.60 (\"\\000\\000\\000\\034ftypmp42\")";
     15resource(4, "META:SNIFF_RULE") "0.60 [4](-i \"ftyp\")[8](-i \"isom\" | \"iso2\" | \"mmp4\" | \"mp41\" | \"mp42\") ";
     16// note: isom and iso2 as major type is against what iso sais, but these exist in the wild, thus they are here.