More backports from Pro edition, among which HTTPS/TLS support
This commit is contained in:
parent
2432bbdfc3
commit
cc9e970ea3
26 changed files with 733 additions and 324 deletions
|
@ -529,9 +529,13 @@ namespace TS {
|
|||
/// \param len The length of this frame.
|
||||
/// \param PTS The timestamp of the frame.
|
||||
std::string & Packet::getPESVideoLeadIn(unsigned int len, unsigned long long PTS, unsigned long long offset, bool isAligned, uint64_t bps) {
|
||||
if (len){
|
||||
len += (offset ? 13 : 8);
|
||||
}
|
||||
if (bps >= 50){
|
||||
if (len){
|
||||
len += 3;
|
||||
}
|
||||
}else{
|
||||
bps = 0;
|
||||
}
|
||||
|
@ -828,7 +832,7 @@ namespace TS {
|
|||
case 0x15: return "meta PES";
|
||||
case 0x16: return "meta section";
|
||||
case 0x1B: return "H264";
|
||||
case 0x24: return "H265";
|
||||
case 0x24: return "HEVC";
|
||||
case 0x81: return "AC3";
|
||||
default: return "unknown";
|
||||
}
|
||||
|
@ -1232,6 +1236,7 @@ namespace TS {
|
|||
}else if (myMeta.tracks[*it].codec == "MP3"){
|
||||
entry.setStreamType(0x03);
|
||||
}else if (myMeta.tracks[*it].codec == "ID3"){
|
||||
entry.setStreamType(0x15);
|
||||
entry.setESInfo(myMeta.tracks[*it].init);
|
||||
}
|
||||
entry.advance();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue