From 26bfad3c0749784ce56bd9e8c3bc17de53e2cd11 Mon Sep 17 00:00:00 2001 From: Gunnar Adler Date: Wed, 13 Nov 2024 21:12:52 +0100 Subject: [PATCH] Remove deprecated Algorithm field 1 which should not be used conjunction with Protection Scheme field 9 --- Source/Python/utils/mp4utils.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/Source/Python/utils/mp4utils.py b/Source/Python/utils/mp4utils.py index 68c9de29..ecb90403 100644 --- a/Source/Python/utils/mp4utils.py +++ b/Source/Python/utils/mp4utils.py @@ -1296,9 +1296,6 @@ def ComputeWidevineHeader(header_spec, encryption_scheme, kid_hex): if 'policy' in fields: protobuf_fields.append((6, fields['policy'])) - if encryption_scheme == 'cenc': - protobuf_fields.append((1, 1)) - four_cc = struct.unpack('>I', encryption_scheme.encode('ascii'))[0] protobuf_fields.append((9, four_cc))