Implemented ES priority flag in accordance with HBBTV spec

This commit is contained in:
Thulinma 2016-07-18 10:08:28 +02:00
parent c78cbc22ea
commit a73f97e065
3 changed files with 41 additions and 9 deletions

View file

@ -39,7 +39,8 @@ namespace Mist {
packData.setDiscontinuity(true);
if (myMeta.tracks[thisPacket.getTrackId()].type == "video"){
if (thisPacket.getInt("keyframe")){
packData.setRandomAccess(1);
packData.setRandomAccess(true);
packData.setESPriority(true);
}
packData.setPCR(thisPacket.getTime() * 27000);
}