If a stream is scrambled, force packets through the descrambler even if that particular packet is not scrambled itself.

Fixes out-of-order problems.
This commit is contained in:
Andreas Öman 2009-09-19 12:29:37 +00:00
parent 793583dd44
commit b83fa7f2a0

View file

@ -209,7 +209,10 @@ ts_recv_packet1(th_transport_t *t, uint8_t *tsb)
ts_extract_pcr(t, st, tsb);
if(tsb[3] & 0xc0) {
if((tsb[3] & 0xc0) ||
(t->tht_scrambled && st->st_type != SCT_CA &&
st->st_type != SCT_PAT && st->st_type != SCT_PMT)) {
/* scrambled stream */
n = m = 0;