Fix MLP stream info

master
jcdr428 2022-01-21 21:34:47 +01:00
parent e2b56c8055
commit a91b437bfb
2 changed files with 4 additions and 3 deletions

View File

@ -60,7 +60,7 @@ const static CodecInfo h264CodecInfo(CODEC_V_MPEG4_H264, "H.264", "V_MPEG4/ISO/A
const static CodecInfo h264DepCodecInfo(CODEC_V_MPEG4_H264_DEP, "MVC",
"V_MPEG4/ISO/MVC"); // H.264/MVC dependent stream
const static CodecInfo aacCodecInfo(CODEC_A_AAC, "AAC", "A_AAC");
const static CodecInfo mlpCodecInfo(CODEC_A_MLP, "MLP", "A_MLP");
const static CodecInfo mlpCodecInfo(CODEC_A_MLP, "TRUE-HD", "A_MLP");
const static CodecInfo dtsCodecInfo(CODEC_A_DTS, "DTS", "A_DTS");
const static CodecInfo dtshdCodecInfo(CODEC_A_DTS, "DTS-HD", "A_DTS");
const static CodecInfo ac3CodecInfo(CODEC_A_AC3, "AC3", "A_AC3");

View File

@ -14,8 +14,9 @@ int MLPStreamReader::getHeaderLen() { return MLP_HEADER_LEN; }
const std::string MLPStreamReader::getStreamInfo()
{
std::ostringstream str;
str << "Sample Rate: " << m_samplerate / 1000 << "KHz ";
str << "Channels: " << (int)m_channels;
str << "Peak bitrate: " << m_bitrate / 1000 << "Kbps ";
str << "Sample Rate: " << m_samplerate / 1000 << "KHz ";
str << "Channels: " << m_channels;
return str.str();
}