HLS: Don't decrypt on key change if there were no prior segments

This commit is contained in:
rlaphoenix 2024-02-16 16:48:38 +00:00
parent 6a37fe9d1b
commit 7587243aa2
1 changed files with 1 additions and 1 deletions

View File

@ -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: