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=d453f5bef392981c8b14025e2446e4012f72f422;p=thirdparty%2Ftvheadend.git capmt: fix the input filter --- diff --git a/src/descrambler/capmt.c b/src/descrambler/capmt.c index 6561c68df..d2f22f3f6 100644 --- a/src/descrambler/capmt.c +++ b/src/descrambler/capmt.c @@ -2048,7 +2048,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,