Revision 36fdd607

View differences:

chunker_streamer/chunker_streamer.c
34 34
long int firstSavedVideoFrame = 0;
35 35
ChunkerStreamerTestMode = 0;
36 36

  
37
int pts_anomaly_threshold = 25;
38
int newtime_anomaly_threshold = 50;
39

  
37 40
// Constant number of frames per chunk
38 41
int chunkFilledFramesStrategy(ExternalChunk *echunk, int chunkType)
39 42
{
......
542 545
			fprintf(stderr, "READLOOP: pts BASE anomaly detected number %d\n", pts_anomalies_counter);
543 546
#endif
544 547
			if(live_source) { //reset just in case of live source
545
				if(pts_anomalies_counter > 25) { //just a random threshold
548
				if(pts_anomalies_counter > pts_anomaly_threshold) {
546 549
					pts_anomalies_counter = 0;
547 550
					FirstTimeVideo = 1;
548 551
					FirstTimeAudio = 1;
......
562 565
#endif
563 566
		}
564 567

  
565
		if(newtime_anomalies_counter > 50) { //just a random threshold
568
		if(newtime_anomalies_counter > newtime_anomaly_threshold) {
566 569
			if(live_source) { //restart just in case of live source
567 570
#ifdef DEBUG_ANOMALIES
568 571
				fprintf(stderr, "READLOOP: too many NEGATIVE TIMESTAMPS anomalies. Restarting.\n");

Also available in: Unified diff