Skip to content

Commit

Permalink
Add DTS:X & TrueHD Atmos
Browse files Browse the repository at this point in the history
  • Loading branch information
jjd-uk committed Nov 22, 2023
1 parent 029f25e commit b2d9204
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemux.cpp
Expand Up @@ -31,7 +31,6 @@ std::string CDemuxStreamAudio::GetStreamType()
}
case AV_CODEC_ID_DTS:
{
//! @todo: With ffmpeg >= 6.1 add new DTSX profile cases
switch (profile)
{
case FF_PROFILE_DTS_96_24:
Expand All @@ -49,6 +48,12 @@ std::string CDemuxStreamAudio::GetStreamType()
case FF_PROFILE_DTS_HD_HRA:
strInfo = "DTS-HD HRA ";
break;
case FF_PROFILE_DTS_HD_MA_X:
strInfo = "DTS:X ";
break;
case FF_PROFILE_DTS_HD_MA_X_IMAX:
strInfo = "DTS:X IMAX ";
break;
default:
strInfo = "DTS ";
break;
Expand All @@ -62,8 +67,18 @@ std::string CDemuxStreamAudio::GetStreamType()
strInfo = "MP3 ";
break;
case AV_CODEC_ID_TRUEHD:
strInfo = "TrueHD ";
{
switch (profile)
{
case FF_PROFILE_TRUEHD_ATMOS:
strInfo = "TrueHD Atmos ";
break;
default:
strInfo = "TrueHD ";
break;
}
break;
}
case AV_CODEC_ID_AAC:
{
switch (profile)
Expand Down

0 comments on commit b2d9204

Please sign in to comment.