Skip to content

Commit

Permalink
Finalize EAC3 ATMOS detection
Browse files Browse the repository at this point in the history
  • Loading branch information
jcdr428 committed Nov 25, 2023
1 parent 809a0e8 commit 563ca92
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tsMuxer/ac3Codec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -557,10 +557,10 @@ const std::string AC3Codec::getStreamInfo()
if (m_true_hd_mode)
{
if (isEAC3())
str << "E-";
str << "E";
str << "AC3 core + ";
str << hd_type;
if (mlp.m_substreams == 4 || m_isAtmos)
if (mlp.m_substreams == 4)
str << " + ATMOS";
str << ". ";

Expand All @@ -571,6 +571,11 @@ const std::string AC3Codec::getStreamInfo()
}
else
{
if (isEAC3())
str << "EAC3";
if (m_isAtmos)
str << " + ATMOS, ";

str << "Bitrate: " << (m_bit_rate + m_bit_rateExt) / 1000 << "Kbps ";
if (m_bit_rateExt)
str << "(core " << m_bit_rate / 1000 << "Kbps) ";
Expand Down

0 comments on commit 563ca92

Please sign in to comment.