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:
parent
793583dd44
commit
b83fa7f2a0
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue