Detect Dolby Digital Plus in Matroska files

This commit is contained in:
Martchus 2020-03-18 17:48:23 +01:00
parent fb4633ad36
commit 25b567913b
2 changed files with 4 additions and 1 deletions

View File

@ -10,7 +10,7 @@ set(META_APP_URL "https://github.com/${META_APP_AUTHOR}/${META_PROJECT_NAME}")
set(META_APP_DESCRIPTION "C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags")
set(META_VERSION_MAJOR 9)
set(META_VERSION_MINOR 1)
set(META_VERSION_PATCH 2)
set(META_VERSION_PATCH 3)
set(META_REQUIRED_CPP_UNIT_VERSION 1.14.0)
set(META_ADD_DEFAULT_CPP_UNIT_TEST_APPLICATION ON)

View File

@ -54,6 +54,7 @@ TrackType MatroskaTrack::type() const
/*!
* \brief Returns the MediaFormat for the specified Matroska codec ID.
* \todo Use an std::unordered_map here.
*/
MediaFormat MatroskaTrack::codecIdToMediaFormat(const string &codecId)
{
@ -122,6 +123,8 @@ MediaFormat MatroskaTrack::codecIdToMediaFormat(const string &codecId)
fmt.general = GeneralMediaFormat::Mpc;
} else if (part1 == "A_AC3") {
fmt.general = GeneralMediaFormat::Ac3;
} else if (part1 == "A_EAC3") {
fmt.general = GeneralMediaFormat::EAc3;
} else if (part1 == "A_ALAC") {
fmt.general = GeneralMediaFormat::Alac;
} else if (part1 == "A_DTS") {