Added 256 to PIDs to avoid reserved PIDS for TS.
This commit is contained in:
parent
ba044b4470
commit
8aebd01afd
2 changed files with 3 additions and 3 deletions
|
@ -993,12 +993,12 @@ namespace TS {
|
||||||
if (vidTrack == -1){
|
if (vidTrack == -1){
|
||||||
vidTrack = *(selectedTracks.begin());
|
vidTrack = *(selectedTracks.begin());
|
||||||
}
|
}
|
||||||
PMT.setPCRPID(vidTrack);
|
PMT.setPCRPID(256 + vidTrack);
|
||||||
PMT.setProgramInfoLength(0);
|
PMT.setProgramInfoLength(0);
|
||||||
short id = 0;
|
short id = 0;
|
||||||
ProgramMappingEntry entry = PMT.getEntry(0);
|
ProgramMappingEntry entry = PMT.getEntry(0);
|
||||||
for (std::set<long unsigned int>::iterator it = selectedTracks.begin(); it != selectedTracks.end(); it++){
|
for (std::set<long unsigned int>::iterator it = selectedTracks.begin(); it != selectedTracks.end(); it++){
|
||||||
entry.setElementaryPid(*it);
|
entry.setElementaryPid(256 + *it);
|
||||||
if (myMeta.tracks[*it].codec == "H264"){
|
if (myMeta.tracks[*it].codec == "H264"){
|
||||||
entry.setStreamType(0x1B);
|
entry.setStreamType(0x1B);
|
||||||
}else if (myMeta.tracks[*it].codec == "AAC"){
|
}else if (myMeta.tracks[*it].codec == "AAC"){
|
||||||
|
|
|
@ -32,7 +32,7 @@ namespace Mist {
|
||||||
|
|
||||||
if (packData.getBytesFree() == 184){
|
if (packData.getBytesFree() == 184){
|
||||||
packData.clear();
|
packData.clear();
|
||||||
packData.setPID(thisPacket.getTrackId());
|
packData.setPID(256 + thisPacket.getTrackId());
|
||||||
packData.setContinuityCounter(++contCounters[packData.getPID()]);
|
packData.setContinuityCounter(++contCounters[packData.getPID()]);
|
||||||
if (first[thisPacket.getTrackId()]){
|
if (first[thisPacket.getTrackId()]){
|
||||||
packData.setUnitStart(1);
|
packData.setUnitStart(1);
|
||||||
|
|
Loading…
Add table
Reference in a new issue