[haiku-commits] haiku: hrev53541 - src/data/mime_db/video

  • From: Adrien Destugues <pulkomandy@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 12 Oct 2019 12:25:16 -0400 (EDT)

hrev53541 adds 1 changeset to branch 'master'
old head: 9fb709d68358d45c647a32a3956a132496f07869
new head: 89cc64ae2bd9e21b1388344bf09dad74fab28498
overview: 
https://git.haiku-os.org/haiku/log/?qt=range&q=89cc64ae2bd9+%5E9fb709d68358

----------------------------------------------------------------------------

89cc64ae2bd9: fix detection of video/mp4 files via sniffer rule
  
  Fixes #15297

                                     [ Pascal Abresch <nep@xxxxxxxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev53541
Commit:      89cc64ae2bd9e21b1388344bf09dad74fab28498
URL:         https://git.haiku-os.org/haiku/commit/?id=89cc64ae2bd9
Author:      Pascal Abresch <nep@xxxxxxxxxxxxxx>
Date:        Sat Oct 12 16:17:48 2019 UTC
Committer:   Adrien Destugues <pulkomandy@xxxxxxxxxxxxx>
Commit-Date: Sat Oct 12 16:26:40 2019 UTC

Ticket:      https://dev.haiku-os.org/ticket/15297

----------------------------------------------------------------------------

1 file changed, 2 insertions(+), 1 deletion(-)
src/data/mime_db/video/mp4 | 3 ++-

----------------------------------------------------------------------------

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.


Other related posts:

  • » [haiku-commits] haiku: hrev53541 - src/data/mime_db/video - Adrien Destugues