Fix setting trackFirstmsFieldfirstMS using the correct value (and for live streams as well)

This commit is contained in:
Marco van Dijk 2021-08-12 15:40:15 +02:00 committed by Thulinma
parent 8b59c9abe7
commit b37a431b41

View file

@ -2396,7 +2396,7 @@ namespace DTSC{
t.keys.setInt(t.keyFirstPartField, 0, newKeyNum);
}
t.keys.addRecords(1);
if (packBytePos){t.track.setInt(t.trackFirstmsField, t.keys.getInt(t.keyTimeField, 0));}
t.track.setInt(t.trackFirstmsField, t.keys.getInt(t.keyTimeField, t.keys.getDeleted()));
uint32_t newFragNum = t.fragments.getEndPos();
if (newFragNum == 0 ||