diff --git a/tsMuxer/aacStreamReader.cpp b/tsMuxer/aacStreamReader.cpp index 2aeba8f1..3b854d88 100644 --- a/tsMuxer/aacStreamReader.cpp +++ b/tsMuxer/aacStreamReader.cpp @@ -8,7 +8,7 @@ const std::string AACStreamReader::getStreamInfo() { std::ostringstream str; str << "Sample Rate: " << m_sample_rate / 1000 << "KHz "; - str << "Channels: " << m_channels; + str << "Channels: " << static_cast(m_channels); return str.str(); } diff --git a/tsMuxer/lpcmStreamReader.cpp b/tsMuxer/lpcmStreamReader.cpp index 6960a532..b2d540bf 100644 --- a/tsMuxer/lpcmStreamReader.cpp +++ b/tsMuxer/lpcmStreamReader.cpp @@ -416,7 +416,7 @@ int LPCMStreamReader::decodeWaveHeader(uint8_t* buff, uint8_t* end) m_channels = static_cast(waveFormatPCMEx->nChannels); if (m_channels > 8) - THROW(ERR_COMMON, "Too many channels: " << m_channels << ". Maximum supported value is 8(7.1)") + THROW(ERR_COMMON, "Too many channels: " << static_cast(m_channels) << ". Maximum supported value is 8(7.1)") if (m_channels == 0) THROW(ERR_COMMON, "Invalid channels count: 0. WAVE header is invalid.") m_freq = waveFormatPCMEx->nSamplesPerSec; diff --git a/tsMuxer/mlpStreamReader.cpp b/tsMuxer/mlpStreamReader.cpp index d19e09d3..fe30abfb 100644 --- a/tsMuxer/mlpStreamReader.cpp +++ b/tsMuxer/mlpStreamReader.cpp @@ -21,7 +21,7 @@ const std::string MLPStreamReader::getStreamInfo() str << ". "; str << "Peak bitrate: " << m_bitrate / 1000 << "Kbps "; str << "Sample Rate: " << m_samplerate / 1000 << "KHz "; - str << "Channels: " << m_channels; + str << "Channels: " << static_cast(m_channels); return str.str(); }