summaryrefslogtreecommitdiff
path: root/cutter.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-11-27 08:57:45 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2012-11-27 08:57:45 +0100
commit2eadd7d4ddc419aafcbdbe397081acff23a541db (patch)
treeb7c53a35b144575122b3419100f7559127a8c63b /cutter.c
parent4db9a3b636d9f2615345fff8e7edf384fce4ac4a (diff)
downloadvdr-2eadd7d4ddc419aafcbdbe397081acff23a541db.tar.gz
vdr-2eadd7d4ddc419aafcbdbe397081acff23a541db.tar.bz2
The cutter now only increments the TS continuity counter for packets that have a payload
Diffstat (limited to 'cutter.c')
-rw-r--r--cutter.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cutter.c b/cutter.c
index e6de47ea..21f91560 100644
--- a/cutter.c
+++ b/cutter.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: cutter.c 2.18 2012/11/25 13:59:07 kls Exp $
+ * $Id: cutter.c 2.19 2012/11/26 17:21:14 kls Exp $
*/
#include "cutter.h"
@@ -210,7 +210,8 @@ void cPtsFixer::Fix(uchar *Data, int Length, bool CutIn)
}
// Adjust the TS continuity counter:
if (fixCounters) {
- counter[Pid] = (counter[Pid] + 1) & TS_CONT_CNT_MASK;
+ if (TsHasPayload(p))
+ counter[Pid] = (counter[Pid] + 1) & TS_CONT_CNT_MASK;
TsSetContinuityCounter(p, counter[Pid]);
}
else