Fixed TS PMT entry size
This commit is contained in:
parent
fcc1dbd24f
commit
0da945f8bb
1 changed files with 3 additions and 0 deletions
|
@ -999,12 +999,15 @@ namespace TS {
|
|||
ProgramMappingEntry entry = PMT.getEntry(0);
|
||||
for (std::set<long unsigned int>::iterator it = selectedTracks.begin(); it != selectedTracks.end(); it++){
|
||||
entry.setElementaryPid(256 + *it);
|
||||
entry.setESInfo("");
|
||||
if (myMeta.tracks[*it].codec == "H264"){
|
||||
entry.setStreamType(0x1B);
|
||||
}else if (myMeta.tracks[*it].codec == "AAC"){
|
||||
entry.setStreamType(0x0F);
|
||||
}else if (myMeta.tracks[*it].codec == "MP3"){
|
||||
entry.setStreamType(0x03);
|
||||
}else if (myMeta.tracks[*it].codec == "ID3"){
|
||||
entry.setESInfo(myMeta.tracks[*it].init);
|
||||
}
|
||||
entry.advance();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue