summaryrefslogtreecommitdiff
path: root/ts2pkt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ts2pkt.cpp')
-rw-r--r--ts2pkt.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/ts2pkt.cpp b/ts2pkt.cpp
index 08139b6..7d66c08 100644
--- a/ts2pkt.cpp
+++ b/ts2pkt.cpp
@@ -190,6 +190,11 @@ int cMarkAdTS2Pkt::Process(MarkAdPid Pid, uchar *TSData, int TSSize, uchar **Pkt
if ((counter!=-1) && (((counter+1) & 0xF)!=tshdr->Counter))
{
+ if (counter==tshdr->Counter)
+ {
+ // duplicate paket -> just ignore
+ return TS_SIZE;
+ }
// sequence error
Reset(MA_ERR_SEQ);
return TS_SIZE;