Fix AES decryption of HLS streams.
As per http://tools.ietf.org/html/draft-pantos-http-live-streaming-04#section-5.2, the initializaton vector (IV) of the AES decryption algorithm should be set to: - the IV attribute value if present, - the sequence number otherwise. Currently, the IV is set once and use over all next media sequences where the IV attribute is not set. The fix is to use the provided IV if given or use the current media sequence number.
Showing
with
9 additions
and
4 deletions
Please
register
or
sign in
to comment