forked from kenzuya/unshackle
fix(drm): key PIFF-first tracks by track ID and trust shaka's exit code
mp4decrypt copied a track whose first sinf has no tenc through encrypted; pass its key by track ID and retry with shaka on a passthrough. Shaka fails only on a non-zero exit now.
This commit is contained in:
@@ -867,6 +867,7 @@ class HLS:
|
||||
init_section = wanted_segments[0].init_section
|
||||
init_content, _ = HLS.fetch_init_section(session, init_section, 0)
|
||||
map_data = (init_section, init_content)
|
||||
use_segment_decrypt = use_segment_decrypt and can_use(session_drm, config.decryption, init_content)
|
||||
if use_segment_decrypt:
|
||||
assert isinstance(session_drm, (Widevine, PlayReady, ClearKeyCENC))
|
||||
segment_decrypter = SegmentDecrypter(session_drm, init_content, save_dir.parent, max_workers)
|
||||
|
||||
Reference in New Issue
Block a user