file: ftyp mp4* is video/mp4 as well

This commit is contained in:
Sigrid 2021-01-01 22:58:05 +01:00
parent c3b30544e1
commit 5991e01ed7

View file

@ -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;
}