From 5991e01ed7537f1f105355e1405ea75de33971f2 Mon Sep 17 00:00:00 2001 From: Sigrid Date: Fri, 1 Jan 2021 22:58:05 +0100 Subject: [PATCH] file: ftyp mp4* is video/mp4 as well --- sys/src/cmd/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/cmd/file.c b/sys/src/cmd/file.c index bd9d1afb5..2e53dbee8 100644 --- a/sys/src/cmd/file.c +++ b/sys/src/cmd/file.c @@ -1251,7 +1251,7 @@ ismp4(void) return 0; if(memcmp(&buf[4], "ftyp", 4) != 0) return 0; - if(memcmp(&buf[8], "isom", 4) == 0){ + if(memcmp(&buf[8], "isom", 4) == 0 || memcmp(&buf[8], "mp4", 3) == 0){ print("%s\n", mime ? "video/mp4" : "mp4 video"); return 1; }