Fixes and improvements to generic push-input handling

This commit is contained in:
Thulinma 2017-04-07 15:34:41 +02:00
parent 7b1652498b
commit 5e2b29466b
5 changed files with 6 additions and 4 deletions

View file

@ -1387,6 +1387,7 @@ namespace DTSC {
}
vod = (packBytePos > 0);
live = !vod;
EXTREME_MSG("Updating meta with %lld@%lld+%lld", packTrack, packTime, packOffset);
if (packTrack > 0 && tracks.count(packTrack)){
tracks[packTrack].update(packTime, packOffset, packDataSize, packBytePos, isKeyframe, packSendSize, segment_size);
}

View file

@ -213,6 +213,8 @@ namespace h264 {
unsigned int timeScale = bs.get(32);
result.fps = (double)timeScale / (2 * unitsInTick);
bs.skip(1);
}else{
result.fps = 0;
}
}