From 5bdcfd8ac97b3337e1c7911ae24127df76fa693a Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Fri, 15 Nov 2019 18:51:43 +0100 Subject: [PATCH] capmt: fix the input filter --- src/descrambler/capmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.47.2