Commit 32a5b165 authored by Ayke van Laethem's avatar Ayke van Laethem Committed by LuK1337

Add support for the .opus file format

The codec and container format are already supported, but not in that
combination. Simply add the file extension as a type of Ogg file (which
it is).

Change-Id: Ia9134a8d1205f73da12f579b3ad62367b2b8d88e
See: https://issuetracker.google.com/issues/37054258
parent 3eb510cf
......@@ -199,6 +199,7 @@ public class MediaFile {
addFileType("OGG", FILE_TYPE_OGG, "audio/ogg", MtpConstants.FORMAT_OGG, false);
addFileType("OGG", FILE_TYPE_OGG, "application/ogg", MtpConstants.FORMAT_OGG, true);
addFileType("OGA", FILE_TYPE_OGG, "application/ogg", MtpConstants.FORMAT_OGG, false);
addFileType("OPUS", FILE_TYPE_OGG, "audio/ogg", MtpConstants.FORMAT_OGG, false);
addFileType("AAC", FILE_TYPE_AAC, "audio/aac", MtpConstants.FORMAT_AAC, true);
addFileType("AAC", FILE_TYPE_AAC, "audio/aac-adts", MtpConstants.FORMAT_AAC, false);
addFileType("MKA", FILE_TYPE_MKA, "audio/x-matroska");
......
......@@ -78,6 +78,7 @@ public class FileCollector {
EXTENSION_MAP.put("wav", AUDIO);
EXTENSION_MAP.put("ogg", AUDIO);
EXTENSION_MAP.put("oga", AUDIO);
EXTENSION_MAP.put("opus", AUDIO);
// Video
EXTENSION_MAP.put("3gpp", VIDEO);
EXTENSION_MAP.put("3gp", VIDEO);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment