forked from DRMTalks/devine
HLS: Don't decrypt on key change if there were no prior segments
This commit is contained in:
parent
6a37fe9d1b
commit
7587243aa2
|
@ -414,7 +414,7 @@ class HLS:
|
|||
|
||||
if segment.keys:
|
||||
key = HLS.get_supported_key(segment.keys)
|
||||
if encryption_data and encryption_data[1] != key:
|
||||
if encryption_data and encryption_data[1] != key and i != 0:
|
||||
decrypt(include_this_segment=False)
|
||||
|
||||
if key is None:
|
||||
|
|
Loading…
Reference in New Issue