Revert sending timestamp more often for HLS - actually makes things worse.
This commit is contained in:
parent
73ec988f15
commit
c4399bb8a0
1 changed files with 1 additions and 3 deletions
|
@ -114,7 +114,6 @@ namespace Mist {
|
|||
|
||||
void OutHLS::fillPacket(bool & first, const char * data, size_t dataLen, char & ContCounter){
|
||||
static std::map<int, int> contCounter;
|
||||
static unsigned int lastPCR = 0;
|
||||
if (!PackData.BytesFree()){
|
||||
if (PacketNumber % 42 == 0){
|
||||
TS::Packet tmpPack;
|
||||
|
@ -138,10 +137,9 @@ namespace Mist {
|
|||
PackData.ContinuityCounter(ContCounter++);
|
||||
if (first){
|
||||
PackData.UnitStart(1);
|
||||
if (currentPacket.getInt("keyframe") || currentPacket.getTime() / 70 != lastPCR / 70){
|
||||
if (currentPacket.getInt("keyframe")){
|
||||
PackData.RandomAccess(1);
|
||||
PackData.PCR(currentPacket.getTime() * 27000);
|
||||
lastPCR = currentPacket.getTime();
|
||||
}
|
||||
first = false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue