* what will break? In practice this probably isn't a problem anyway -- Bryan)
*/
protected static $wellKnownTypes = <<<EOT
-application/ogg ogx ogg ogm ogv oga spx
+application/ogg ogx ogg ogm ogv oga spx opus
application/pdf pdf
application/vnd.oasis.opendocument.chart odc
application/vnd.oasis.opendocument.chart-template otc
audio/mpeg mpga mpa mp2 mp3
audio/x-aiff aif aiff aifc
audio/x-wav wav
-audio/ogg oga spx ogg
+audio/ogg oga spx ogg opus
+audio/opus opus ogg oga ogg spx
image/x-bmp bmp
image/gif gif
image/jpeg jpeg jpg jpe
'xbm',
// Formats we recognize magic numbers for
- 'djvu', 'ogx', 'ogg', 'ogv', 'oga', 'spx',
+ 'djvu', 'ogx', 'ogg', 'ogv', 'oga', 'spx', 'opus',
'mid', 'pdf', 'wmf', 'xcf', 'webm', 'mkv', 'mka',
'webp',
return MEDIATYPE_AUDIO;
} elseif ( strpos( $head, 'speex' ) !== false ) {
return MEDIATYPE_AUDIO;
+ } elseif ( strpos( $head, 'opus' ) !== false ) {
+ return MEDIATYPE_AUDIO;
} else {
return MEDIATYPE_MULTIMEDIA;
}