Remove deprecated Algorithm field 1 which should not be used conjunction with Protection Scheme field 9

This commit is contained in:
Gunnar Adler 2024-11-13 21:12:52 +01:00
parent f8ce9a93de
commit 26bfad3c07

View File

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