ref: 30e6dc997ffa59e9d4236711d85dc2776a93d6c6
parent: 83978bb12d7356000b5ebeb164bcea9a422594da
author: qwx <qwx@sciops.net>
date: Sun Oct 15 20:27:43 EDT 2023
file: use xiph mimetypes to clearly differentiate ogg/vorbis from ogg/opus et al (thanks sigrid)
--- a/sys/src/cmd/file.c
+++ b/sys/src/cmd/file.c
@@ -1311,7 +1311,7 @@
return 0;
if(memcmp(&buf[29], "vorbis", 6) != 0)
return 0;
- print("%s\n", mime ? "audio/ogg;codecs=vorbis" : "ogg audio");
+ print("%s\n", mime ? "audio/ogg;codecs=vorbis" : "Ogg Vorbis I profile");
return 1;
}
@@ -1322,7 +1322,7 @@
return 0;
if(memcmp(&buf[28], "OpusHead", 8) != 0)
return 0;
- print("%s\n", mime ? "audio/ogg;codecs=opus" : "ogg audio");
+ print("%s\n", mime ? "audio/ogg;codecs=opus" : "Ogg Opus profile");
return 1;
}