summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSigrid <ftrvxmtrx@gmail.com>2021-01-01 22:58:05 +0100
committerSigrid <ftrvxmtrx@gmail.com>2021-01-01 22:58:05 +0100
commit5991e01ed7537f1f105355e1405ea75de33971f2 (patch)
treef2f4fd135aa72bef4529b3b380908086f9066231
parentc3b30544e19f54020ddc364b02e5202bb465cec6 (diff)
downloadplan9front-5991e01ed7537f1f105355e1405ea75de33971f2.tar.xz
file: ftyp mp4* is video/mp4 as well
-rw-r--r--sys/src/cmd/file.c2
1 files changed, 1 insertions, 1 deletions
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;
}