Only force descrambling if at least on scrambled packet is seen
This commit is contained in:
parent
b83fa7f2a0
commit
a534bae4ca
2 changed files with 4 additions and 1 deletions
|
@ -210,9 +210,11 @@ ts_recv_packet1(th_transport_t *t, uint8_t *tsb)
|
|||
|
||||
|
||||
if((tsb[3] & 0xc0) ||
|
||||
(t->tht_scrambled && st->st_type != SCT_CA &&
|
||||
(t->tht_scrambled_seen && st->st_type != SCT_CA &&
|
||||
st->st_type != SCT_PAT && st->st_type != SCT_PMT)) {
|
||||
|
||||
t->tht_scrambled_seen = 1;
|
||||
|
||||
/* scrambled stream */
|
||||
n = m = 0;
|
||||
|
||||
|
|
|
@ -609,6 +609,7 @@ typedef struct th_transport {
|
|||
|
||||
struct th_descrambler_list tht_descramblers;
|
||||
int tht_scrambled;
|
||||
int tht_scrambled_seen;
|
||||
int tht_caid;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue