Subtitle PIDs must start at 0x12A0 for HDR (#171)
This commit is contained in:
parent
f504a0cb08
commit
7740bd5009
@ -8,6 +8,7 @@
|
||||
|
||||
#include "avCodecs.h"
|
||||
#include "math.h"
|
||||
#include "tsMuxer.h"
|
||||
#include "tsPacket.h"
|
||||
#include "vodCoreException.h"
|
||||
#include "vod_common.h"
|
||||
@ -761,7 +762,7 @@ CheckStreamRez PGSStreamReader::checkStream(uint8_t* buffer, int len, ContainerT
|
||||
rez.codecInfo = pgsCodecInfo;
|
||||
rez.streamDescr = "Presentation Graphic Stream";
|
||||
if (containerStreamIndex >= 0x1200)
|
||||
rez.streamDescr += std::string(" #") + int32ToStr(containerStreamIndex - 0x1200);
|
||||
rez.streamDescr += std::string(" #") + int32ToStr(containerStreamIndex - (V3_flags & 1 ? 0x1200 : 0x12A0));
|
||||
}
|
||||
else if (containerType == ctMKV && containerDataType == STREAM_TYPE_SUB_PGS)
|
||||
{
|
||||
|
@ -215,12 +215,12 @@ void TSMuxer::intAddStream(const std::string& streamName, const std::string& cod
|
||||
}
|
||||
else if (codecName == "S_HDMV/PGS")
|
||||
{
|
||||
tsStreamIndex = 0x1200 + m_pgsTrackCnt;
|
||||
tsStreamIndex = (V3_flags & 1 ? 0x1200 : 0x12A0) + m_pgsTrackCnt;
|
||||
m_pgsTrackCnt++;
|
||||
}
|
||||
else if (codecName == "S_TEXT/UTF8")
|
||||
{
|
||||
tsStreamIndex = 0x1200 + m_pgsTrackCnt;
|
||||
tsStreamIndex = (V3_flags & 1 ? 0x1200 : 0x12A0) + m_pgsTrackCnt;
|
||||
m_pgsTrackCnt++;
|
||||
}
|
||||
m_extIndexToTSIndex[streamIndex] = tsStreamIndex;
|
||||
|
Loading…
x
Reference in New Issue
Block a user