diff options
author | Sigrid <ftrvxmtrx@gmail.com> | 2021-01-01 22:58:05 +0100 |
---|---|---|
committer | Sigrid <ftrvxmtrx@gmail.com> | 2021-01-01 22:58:05 +0100 |
commit | 5991e01ed7537f1f105355e1405ea75de33971f2 (patch) | |
tree | f2f4fd135aa72bef4529b3b380908086f9066231 | |
parent | c3b30544e19f54020ddc364b02e5202bb465cec6 (diff) | |
download | plan9front-5991e01ed7537f1f105355e1405ea75de33971f2.tar.xz |
file: ftyp mp4* is video/mp4 as well
-rw-r--r-- | sys/src/cmd/file.c | 2 |
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; } |