TS input can now cope a bit better with packet loss, incomplete UDP packets now buffered

This commit is contained in:
Thulinma 2016-07-11 11:40:52 +02:00
parent 4bcfb5191a
commit 523c00f462
2 changed files with 22 additions and 11 deletions

View file

@ -442,8 +442,8 @@ namespace TS {
}
if (paySize - offset - pesOffset < realPayloadSize){
INFO_MSG("Not enough data left on track %lu.", tid);
break;
WARN_MSG("Packet loss detected, glitches will occur");
realPayloadSize = paySize - offset - pesOffset;
}
char * pesPayload = payload + offset + pesOffset;