Skip to content

Commit

Permalink
cast m_channel to int with 'cout'
Browse files Browse the repository at this point in the history
  • Loading branch information
jcdr428 committed Aug 30, 2023
1 parent 7696754 commit 0222042
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tsMuxer/aacStreamReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<int>(m_channels);
return str.str();
}

Expand Down
2 changes: 1 addition & 1 deletion tsMuxer/lpcmStreamReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ int LPCMStreamReader::decodeWaveHeader(uint8_t* buff, uint8_t* end)

m_channels = static_cast<uint8_t>(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<int>(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;
Expand Down
2 changes: 1 addition & 1 deletion tsMuxer/mlpStreamReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<int>(m_channels);
return str.str();
}

Expand Down

0 comments on commit 0222042

Please sign in to comment.