Some fixes to HLS output.

This commit is contained in:
Thulinma 2015-02-18 18:53:53 +01:00
parent 44c0227064
commit 09c7881d10

View file

@ -83,9 +83,7 @@ namespace Mist {
if ( !myMeta.live){
result << "#EXT-X-ENDLIST\r\n";
}
#if DEBUG >= 8
std::cerr << "Sending this index:" << std::endl << result.str() << std::endl;
#endif
DEBUG_MSG(DLVL_HIGH, "Sending this index: %s", result.str().c_str());
return result.str();
} //liveIndex
@ -139,6 +137,8 @@ namespace Mist {
PackData.UnitStart(1);
if (currentPacket.getInt("keyframe")){
PackData.RandomAccess(1);
}
if (myMeta.tracks[currentPacket.getTrackId()].type == "video"){
PackData.PCR(currentPacket.getTime() * 27000);
}
first = false;
@ -182,8 +182,6 @@ namespace Mist {
avccbox.setPayload(myMeta.tracks[currentPacket.getTrackId()].init);
haveAvcc = true;
}
bs = avccbox.asAnnexB();
fillPacket(first, bs.data(), bs.size(), VideoCounter);
}
unsigned int i = 0;