mirror of
https://github.com/shaka-project/shaka-packager.git
synced 2026-04-13 08:40:49 +00:00
Before, we would add clear ranges to the start of the subsample, therefore moving the encrypted start further into the video frame; now we add clear ranges to the end by adding a new subsample (if needed). This seems more correct. Both are allowed by the spec, but it would be better to encrypt the beginning of the frame to give attackers less info about the start of the frame. Having the clear data at the end of the frame doesn't give attackers much info since most data depends on the encrypted state.