Skip to content

Commit

Permalink
This resolves issue shaka-project#1191 while passing lint tests
Browse files Browse the repository at this point in the history
The patch has been updated to pass lint tests. 
The change is now within the line length limit(s).
  • Loading branch information
Brainiarc7 authored Mar 20, 2023
1 parent a5b1aad commit b3b4997
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packager/tools/pssh/pssh-box.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def _generate_widevine_data(key_ids, content_id, provider, protection_scheme):
wv.content_id = content_id
# 'cenc' is the default, so omitted to save bytes.
if protection_scheme and protection_scheme != 'cenc':
wv.protection_scheme = struct.unpack('>L', bytes(protection_scheme, encoding='utf-8'))[0]
wv.protection_scheme = struct.unpack('>L', protection_scheme.encode())[0]
return wv.SerializeToString()


Expand Down

0 comments on commit b3b4997

Please sign in to comment.