Ignore packets with invalid timestamps in VoD inputs
This commit is contained in:
parent
9e9550f2b7
commit
9a1fb0873f
1 changed files with 6 additions and 2 deletions
|
@ -467,8 +467,12 @@ namespace Mist {
|
||||||
while (thisPacket && thisPacket.getTime() < (unsigned long long)myMeta.tracks[track].keys[keyNum - 1].getTime()){
|
while (thisPacket && thisPacket.getTime() < (unsigned long long)myMeta.tracks[track].keys[keyNum - 1].getTime()){
|
||||||
getNext();
|
getNext();
|
||||||
}
|
}
|
||||||
while (thisPacket && thisPacket.getTime() < stopTime){
|
uint64_t lastBuffered = 0;
|
||||||
bufferNext(thisPacket);
|
while (thisPacket && thisPacket.getTime() < stopTime) {
|
||||||
|
if (thisPacket.getTime() >= lastBuffered){
|
||||||
|
bufferNext(thisPacket);
|
||||||
|
lastBuffered = thisPacket.getTime();
|
||||||
|
}
|
||||||
getNext();
|
getNext();
|
||||||
}
|
}
|
||||||
bufferFinalize(track);
|
bufferFinalize(track);
|
||||||
|
|
Loading…
Add table
Reference in a new issue