diff options
-rw-r--r-- | include/moreuuids.h | 4 | ||||
-rw-r--r-- | src/DSUtil/MediaTypeEx.cpp | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/moreuuids.h b/include/moreuuids.h index 9fccca070..fe028dde7 100644 --- a/include/moreuuids.h +++ b/include/moreuuids.h @@ -1128,6 +1128,10 @@ struct WAVEFORMATEX_HDMV_LPCM : public WAVEFORMATEX { DEFINE_GUID(MEDIASUBTYPE_MLP,
WAVE_FORMAT_MLP, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71);
+#define WAVE_FORMAT_OPUS mmioFOURCC('O','P','U','S')
+DEFINE_GUID(MEDIASUBTYPE_OPUS,
+ WAVE_FORMAT_OPUS, 0x000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
+
// {AFBC2343-3DCB-4047-9655-E1E62A61B1C5}
DEFINE_GUID(MEDIASUBTYPE_FFMPEG_AUDIO,
0xafbc2343, 0x3dcb, 0x4047, 0x96, 0x55, 0xe1, 0xe6, 0x2a, 0x61, 0xb1, 0xc5);
diff --git a/src/DSUtil/MediaTypeEx.cpp b/src/DSUtil/MediaTypeEx.cpp index 819a4fceb..656df3176 100644 --- a/src/DSUtil/MediaTypeEx.cpp +++ b/src/DSUtil/MediaTypeEx.cpp @@ -414,6 +414,8 @@ CString CMediaTypeEx::GetAudioCodecName(const GUID& subtype, WORD wFormatTag) subtype == MEDIASUBTYPE_SAMR ||
subtype == MEDIASUBTYPE_SAWB) {
str = _T("AMR");
+ } else if (subtype == MEDIASUBTYPE_OPUS) {
+ str = _T("Opus");
} // If the subtype wasn't enough to find the codec name, we try the format tag
else if (!names.Lookup(wFormatTag, str)) {
// If that fails, we have an unknown audio codec
|