Cap AVC profile level at 4.1 in stream master playlist (#41592)
* Cap AVC profile level at 4.1 * Use smaller multiplier in bandwidth calculation
This commit is contained in:
1 parent
6114006b8b
commit
9270585a44
2 files changed
+5
-3
No files matched your search
@@ -70,7 +70,8 @@ def get_codec_string(segment: io.BytesIO) -> str:
|
||||
):
|
||||
profile = stsd_box[111:112].hex()
|
||||
compatibility = stsd_box[112:113].hex()
|
||||
level = stsd_box[113:114].hex()
|
||||
# Cap level at 4.1 for compatibility with some Google Cast devices
|
||||
level = hex(min(stsd_box[113], 41))[2:]
|
||||
codec += "." + profile + compatibility + level
|
||||
|
||||
# Handle H265
|
||||
|
||||
Reference in new issue
Block a user