From 05b30b3a89b35a6befd0deaf38d2f852ad098f8e Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Fri, 18 Nov 2022 09:18:52 +0000 Subject: [PATCH] PSSH: Only craft PSSH with key_IDs set if version is 1 --- pywidevine/pssh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pywidevine/pssh.py b/pywidevine/pssh.py index e7544f2..4c50368 100644 --- a/pywidevine/pssh.py +++ b/pywidevine/pssh.py @@ -170,7 +170,7 @@ class PSSH: version=version, flags=flags, system_ID=PSSH.SystemId.Widevine, - key_IDs=key_ids if key_ids else None, + key_IDs=key_ids if key_ids and version == 1 else None, init_data=[init_data, b""][init_data is None] )))