Fixed HLS init.

This commit is contained in:
Thulinma 2014-11-14 15:24:54 +01:00
parent 0fbcd97309
commit b68df4f2dd

View file

@ -205,8 +205,7 @@ namespace Mist {
fillPacket(first, bs.data(), bs.size(), VideoCounter);
if (myMeta.tracks[currentPacket.getTrackId()].codec == "H264"){
//End of previous nal unit, somehow needed for h264
bs = "\000\000\000\001\011\360";
fillPacket(first, bs.data(), bs.size(),VideoCounter);
fillPacket(first, "\000\000\000\001\011\360", 6, VideoCounter);
}