Files
shaka-packager/packager
Jacob Trimble e981da5ad8 fix: Move cipher block align to start of block (#1540)
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.
2026-03-04 18:57:54 -08:00
..