Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit b2451bb3 authored by Chong Zhang's avatar Chong Zhang
Browse files

MediaCas: re-send the first scrambled TS packet to decoder

Currently, for scrambled streams that require secure decoder,
we descramble the first TS packet (which includes the PES header)
into the clear, and this TS packet is not descrambled again
at decoding time.

However, descramblers may not be able to descramble the bitstream
into clear buffers past the PES header portion. So we need to
assume that in the first pass, we can only get up to the PES
header portion, and at decoding time, this TS packet should be
descrambled again fully.

bug: 111271614
Test: CTS MediaCasTest; MediaDrmClearKeyTest;
tested with clearkey cas plugin modified to return only the PES
header portion of the first TS packet, instead of the full TS.

Change-Id: I8e77df3c5fa1268282442b7556851d89918c244d
parent 84c05cdc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment