From: Andreas Ă–man Date: Sat, 19 Sep 2009 12:29:37 +0000 (+0000) Subject: If a stream is scrambled, force packets through the descrambler even if that particul... X-Git-Tag: 2.12~479 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b83fa7f2a0467a5b42fa1c67b0a7e232d830e6d2;p=thirdparty%2Ftvheadend.git If a stream is scrambled, force packets through the descrambler even if that particular packet is not scrambled itself. Fixes out-of-order problems. --- diff --git a/src/tsdemux.c b/src/tsdemux.c index e6b018469..9bd68c56f 100644 --- a/src/tsdemux.c +++ b/src/tsdemux.c @@ -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;