From: Jaroslav Kysela Date: Fri, 15 Nov 2019 17:51:43 +0000 (+0100) Subject: capmt: fix the input filter X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1334%2Fhead;p=thirdparty%2Ftvheadend.git capmt: fix the input filter --- diff --git a/src/descrambler/capmt.c b/src/descrambler/capmt.c index 1116b29d3..0b26f0722 100644 --- a/src/descrambler/capmt.c +++ b/src/descrambler/capmt.c @@ -1898,7 +1898,7 @@ capmt_table_input(void *opaque, int pid, const uint8_t *data, int len, int emm) if ((data[i + 2] & f->mask[i]) != f->filter[i]) break; } - if (i >= DMX_FILTER_SIZE && i + 2 <= len) { + if (i >= DMX_FILTER_SIZE || i + 2 == len) { tvhtrace(LS_CAPMT, "filter match pid %d len %d emm %d", pid, len, emm); capmt_filter_data(capmt, o->adapter, demux_index,