Some fixes to HLS output.
This commit is contained in:
parent
44c0227064
commit
09c7881d10
1 changed files with 3 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue