summaryrefslogtreecommitdiff
path: root/ci.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2021-06-09 09:42:15 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2021-06-09 09:42:15 +0200
commit60c858689bbdeee5c8d8b6bc49af3fd0c478dbaa (patch)
tree4943c33628ef611e28711e8eef158aa8b12a68e6 /ci.c
parent9686a9b474ece6748bad7bb93f8e091134e27be8 (diff)
downloadvdr-60c858689bbdeee5c8d8b6bc49af3fd0c478dbaa.tar.gz
vdr-60c858689bbdeee5c8d8b6bc49af3fd0c478dbaa.tar.bz2
Fixed handling incomplete multi-packet CAT
Diffstat (limited to 'ci.c')
-rw-r--r--ci.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ci.c b/ci.c
index ed3470b1..d9d4b5ee 100644
--- a/ci.c
+++ b/ci.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: ci.c 4.32 2020/08/17 10:26:18 kls Exp $
+ * $Id: ci.c 5.1 2021/06/09 09:41:18 kls Exp $
*/
#include "ci.h"
@@ -188,6 +188,10 @@ void cCaPidReceiver::Receive(const uchar *Data, int Length)
const uchar *p = NULL;
if (TsPayloadStart(Data)) {
if (Data[5] == SI::TableIdCAT) {
+ if (bufp) { // incomplete multi-packet CAT
+ catVersion = -1;
+ bufp = NULL;
+ }
length = (int(Data[6] & 0x0F) << 8) | Data[7]; // section length (12 bit field)
if (length > 5) {
int v = (Data[10] & 0x3E) >> 1; // version number