]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
descrambler: Fix Sky-UK descrambling
authorFlole998 <Flole998@users.noreply.github.com>
Mon, 5 Feb 2024 17:31:43 +0000 (18:31 +0100)
committerFlole998 <Flole998@users.noreply.github.com>
Mon, 5 Feb 2024 23:22:09 +0000 (00:22 +0100)
src/descrambler/descrambler.c

index 3d6372dc95f7c506e857888ac11d2c9489390922..df7be5826ab6d36c0d8fc27d2fd572573d0e1b2d 100644 (file)
@@ -1373,7 +1373,7 @@ descrambler_table_callback
                   if (st->es_pid != mt->mt_pid) continue;
                     LIST_FOREACH(ca, &st->es_caids, link) {
                     if (ca->use == 0) continue;
-                    tk->key_csa.csa_ecm = (caid_is_videoguard(ca->caid) && (ptr[4] != 0 && (ptr[2] - ptr[4]) == 4)) ? ptr[21] : 0;
+                    tk->key_csa.csa_ecm = (caid_is_videoguard(ca->caid) && (ptr[4] != 0 && (ptr[2] - ptr[4]) == 4)) ? 4 : 0;
                     tvhtrace(LS_DESCRAMBLER, "key ecm=%X (caid=%04X)", tk->key_csa.csa_ecm, ca->caid);
                   }
                 }