diff --git a/packager/tools/pssh/pssh-box.py b/packager/tools/pssh/pssh-box.py index 9216be28a1..7c2b20ffa0 100755 --- a/packager/tools/pssh/pssh-box.py +++ b/packager/tools/pssh/pssh-box.py @@ -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', protection_scheme)[0] + wv.protection_scheme = struct.unpack('>L', protection_scheme.encode())[0] return wv.SerializeToString()