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()){ | ||||
|       getNext(); | ||||
|     } | ||||
|     uint64_t lastBuffered = 0; | ||||
|     while (thisPacket && thisPacket.getTime() < stopTime) { | ||||
|       if (thisPacket.getTime() >= lastBuffered){ | ||||
|         bufferNext(thisPacket); | ||||
|         lastBuffered = thisPacket.getTime(); | ||||
|       } | ||||
|       getNext(); | ||||
|     } | ||||
|     bufferFinalize(track); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Thulinma
						Thulinma