ref: 58351e9ebd4863031f8c978375765aec27c0be8c
parent: e778313180c86a9a3b25b0188b1c5b2f8c3d6b08
author: Sigrid <ftrvxmtrx@gmail.com>
date: Fri Jan 1 17:58:05 EST 2021
file: ftyp mp4* is video/mp4 as well
--- a/sys/src/cmd/file.c
+++ b/sys/src/cmd/file.c
@@ -1251,7 +1251,7 @@
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;
}
--
⑨