Only force descrambling if at least on scrambled packet is seen

This commit is contained in:
Andreas Öman 2009-09-26 08:17:55 +00:00
parent b83fa7f2a0
commit a534bae4ca
2 changed files with 4 additions and 1 deletions

View file

@ -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;

View file

@ -609,6 +609,7 @@ typedef struct th_transport {
struct th_descrambler_list tht_descramblers;
int tht_scrambled;
int tht_scrambled_seen;
int tht_caid;
/**