mirror of
https://github.com/justdan96/tsMuxer.git
synced 2026-10-18 13:11:30 +08:00
Fix incorrect stream type of EAC3 stream in TS
This commit is contained in:
+10
-3
@@ -337,10 +337,17 @@ void TSMuxer::intAddStream(const std::string& streamName, const std::string& cod
|
||||
streamType = StreamType::AUDIO_TRUE_HD;
|
||||
else if (ac3Reader->isEAC3() && !ac3Reader->getDownconvertToAC3())
|
||||
{
|
||||
if (ac3Reader->isSecondary())
|
||||
streamType = StreamType::AUDIO_EAC3_SECONDARY;
|
||||
if (m_bluRayMode)
|
||||
{
|
||||
if (ac3Reader->isSecondary())
|
||||
streamType = StreamType::AUDIO_EAC3_SECONDARY;
|
||||
else
|
||||
streamType = StreamType::AUDIO_EAC3;
|
||||
}
|
||||
else
|
||||
streamType = StreamType::AUDIO_EAC3;
|
||||
{
|
||||
streamType = StreamType::AUDIO_EAC3_ATSC;
|
||||
}
|
||||
}
|
||||
else
|
||||
streamType = StreamType::AUDIO_AC3;
|
||||
|
||||
@@ -44,6 +44,7 @@ bool isAudioStreamType(StreamType stream_coding_type)
|
||||
case StreamType::AUDIO_DTS:
|
||||
case StreamType::AUDIO_TRUE_HD:
|
||||
case StreamType::AUDIO_EAC3:
|
||||
case StreamType::AUDIO_EAC3_ATSC:
|
||||
case StreamType::AUDIO_DTS_HD:
|
||||
case StreamType::AUDIO_DTS_HD_MA:
|
||||
case StreamType::AUDIO_EAC3_SECONDARY:
|
||||
@@ -319,6 +320,7 @@ bool TS_program_map_section::deserialize(uint8_t* buffer, int buf_size)
|
||||
case StreamType::AUDIO_AAC:
|
||||
case StreamType::AUDIO_AC3:
|
||||
case StreamType::AUDIO_EAC3:
|
||||
case StreamType::AUDIO_EAC3_ATSC:
|
||||
case StreamType::AUDIO_DTS:
|
||||
audio_pid = elementary_pid;
|
||||
audio_type = (int)stream_type;
|
||||
|
||||
Reference in New Issue
Block a user