diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2012-11-27 08:57:45 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2012-11-27 08:57:45 +0100 |
commit | 2eadd7d4ddc419aafcbdbe397081acff23a541db (patch) | |
tree | b7c53a35b144575122b3419100f7559127a8c63b /cutter.c | |
parent | 4db9a3b636d9f2615345fff8e7edf384fce4ac4a (diff) | |
download | vdr-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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |