[Fuchsia] Fix FuchsiaSecureStreamDecryptor to handle unencrypted frames
Encrypted media streams may contain unencrypted flames. That case wasn't handled correctly in FuchsiaSecureStreamDecryptor. Now it generates input packet with a single subsample entry with encrypted_bytes = 0. fuchsia.media.drm API currently needs key_id even for clear frames, see fxb/38253. To workaround this bug FuchsiaSecureStreamDecryptor now stores a key_id from the last OnNewKey() and then sets that key_id in the FormatDetails for clear frames. Bug: 1012525, b/141148085 Change-Id: I185e3a89086a3613b383b9ef75e59ef5e151cb75 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1846323 Commit-Queue: Sergey Ulanov <sergeyu@chromium.org> Reviewed-by:David Dorwin <ddorwin@chromium.org> Cr-Commit-Position: refs/heads/master@{#704874}
Showing
Please register or sign in to comment