Skip to content

Commit

Permalink
Remove deprecated Algorithm field 1 which should not be used conjunct…
Browse files Browse the repository at this point in the history
…ion with Protection Scheme field 9
  • Loading branch information
ftyp committed Nov 13, 2024
1 parent f8ce9a9 commit 26bfad3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Source/Python/utils/mp4utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit 26bfad3

Please sign in to comment.