From e983b7d8425c8d74f9389a120b44b799147d140c Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Wed, 17 Oct 2018 17:06:07 +0200 Subject: [PATCH] minisatip8: ignore wrong PIDs (VDR sends PID 65535!) --- patches/minisatip8-axe.patch | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/patches/minisatip8-axe.patch b/patches/minisatip8-axe.patch index 460bc5c8..3f1aaf68 100644 --- a/patches/minisatip8-axe.patch +++ b/patches/minisatip8-axe.patch @@ -32,7 +32,7 @@ index 8812322..519f3da 100755 myTable += "" + state['ad_axe_pktc'][i] + " "; myTable += "" + state['ad_axe_ccerr'][i] + " "; diff --git a/src/adapter.c b/src/adapter.c -index e034e3e..42a98b3 100644 +index e034e3e..319591e 100644 --- a/src/adapter.c +++ b/src/adapter.c @@ -75,6 +75,7 @@ adapter *adapter_alloc() @@ -115,7 +115,7 @@ index e034e3e..42a98b3 100644 for (i = 0; i < la; i++) { pid = map_int(arg[i], NULL); -@@ -1146,7 +1152,7 @@ int mark_pids_add(int sid, int aid, char *pids) +@@ -1146,11 +1152,11 @@ int mark_pids_add(int sid, int aid, char *pids) LOG("adding pids to adapter %d, sid %d, pids=%s", aid, sid, pids ? pids : "NULL"); @@ -124,6 +124,11 @@ index e034e3e..42a98b3 100644 for (i = 0; i < la; i++) { pid = map_intd(arg[i], NULL, -1); +- if (pid == -1) ++ if (pid < 0 || pid > 8182) + continue; + if (mark_pid_add(sid, aid, pid) < 0) + return -1; @@ -1165,11 +1171,11 @@ int compare_tunning_parameters(int aid, transponder *tp) if (!ad) return -1;