Detect Dolby Digital Plus in Matroska files
This commit is contained in:
parent
fb4633ad36
commit
25b567913b
|
@ -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)
|
||||
|
||||
|
|
|
@ -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") {
|
||||
|
|
Loading…
Reference in New Issue