shithub: riscv

Download patch

ref: 5991e01ed7537f1f105355e1405ea75de33971f2
parent: c3b30544e19f54020ddc364b02e5202bb465cec6
author: Sigrid <[email protected]>
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;
 	}