Updated TS protocols to use proper DTS/PTS using new lib calls.
This commit is contained in:
parent
30866407e0
commit
8e6da507bc
3 changed files with 3 additions and 3 deletions
|
@ -172,7 +172,7 @@ namespace Mist {
|
|||
std::string bs;
|
||||
//prepare bufferstring
|
||||
if (myMeta.tracks[currentPacket.getTrackId()].type == "video"){
|
||||
bs = TS::Packet::getPESVideoLeadIn(0ul, currentPacket.getTime() * 90);
|
||||
bs = TS::Packet::getPESVideoLeadIn(0ul, currentPacket.getTime() * 90, currentPacket.getInt("offset") * 90);
|
||||
fillPacket(first, bs.data(), bs.size(), VideoCounter);
|
||||
if (myMeta.tracks[currentPacket.getTrackId()].codec == "H264"){
|
||||
//End of previous nal unit, somehow needed for h264
|
||||
|
|
|
@ -67,7 +67,7 @@ namespace Mist {
|
|||
std::string bs;
|
||||
//prepare bufferstring
|
||||
if (myMeta.tracks[currentPacket.getTrackId()].type == "video"){
|
||||
bs = TS::Packet::getPESVideoLeadIn(0ul, currentPacket.getTime() * 90);
|
||||
bs = TS::Packet::getPESVideoLeadIn(0ul, currentPacket.getTime() * 90, currentPacket.getInt("offset") * 90);
|
||||
fillPacket(first, bs.data(), bs.size(), VideoCounter);
|
||||
|
||||
if (currentPacket.getInt("keyframe")){
|
||||
|
|
|
@ -96,7 +96,7 @@ namespace Mist {
|
|||
std::string bs;
|
||||
//prepare bufferstring
|
||||
if (myMeta.tracks[currentPacket.getTrackId()].type == "video"){
|
||||
bs = TS::Packet::getPESVideoLeadIn(0ul, currentPacket.getTime() * 90);
|
||||
bs = TS::Packet::getPESVideoLeadIn(0ul, currentPacket.getTime() * 90, currentPacket.getInt("offset") * 90);
|
||||
fillPacket(first, bs.data(), bs.size(),VideoCounter);
|
||||
|
||||
if (currentPacket.getInt("keyframe")){
|
||||
|
|
Loading…
Add table
Reference in a new issue