codec_c: add 'dnet' as known FourCC for AC3

Used in RealAudio.
This commit is contained in:
Moritz Bunkus 2014-01-11 09:30:29 +01:00
parent 19675371ce
commit aab4bb4b63
2 changed files with 2 additions and 1 deletions

View File

@ -34,7 +34,7 @@ codec_c::initialize() {
ms_codecs.emplace_back("VC1", CT_V_VC1, "wvc1|vc-1");
ms_codecs.emplace_back("AAC", CT_A_AAC, "mp4a|aac.|raac|racp|A_AAC.*", std::vector<uint16_t>{ 0x00ffu, 0x706du });
ms_codecs.emplace_back("AC3/EAC3", CT_A_AC3, "ac3.|ac-3|sac3|eac3|a52[\\sb]|A_E?AC3", 0x2000u);
ms_codecs.emplace_back("AC3/EAC3", CT_A_AC3, "ac3.|ac-3|sac3|eac3|a52[\\sb]|dnet|A_E?AC3", 0x2000u);
ms_codecs.emplace_back("ALAC", CT_A_ALAC, "alac|A_ALAC");
ms_codecs.emplace_back("DTS", CT_A_DTS, "dts[\\sbcehl]|A_DTS", 0x2001u);
ms_codecs.emplace_back("MP2", CT_A_MP2, "mp2.|\\.mp[12]|mp2a|A_MPEG/L2", 0x0050);

View File

@ -32,6 +32,7 @@ TEST(Codec, LookUpStringAudio) {
EXPECT_TRUE(codec_c::look_up("a52b").is(CT_A_AC3));
EXPECT_TRUE(codec_c::look_up("ac-3").is(CT_A_AC3));
EXPECT_TRUE(codec_c::look_up("sac3").is(CT_A_AC3));
EXPECT_TRUE(codec_c::look_up("dnet").is(CT_A_AC3));
EXPECT_TRUE(codec_c::look_up(MKV_A_ALAC).is(CT_A_ALAC));
EXPECT_TRUE(codec_c::look_up("ALAC").is(CT_A_ALAC));