Revert sending timestamp more often for HLS - actually makes things worse.

This commit is contained in:
Thulinma 2015-02-13 18:55:58 +01:00
parent 73ec988f15
commit c4399bb8a0

View file

@ -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;
}