[utils] Add urshift()
Used in IqiyiIE and LeIE
This commit is contained in:
parent
7d52c052ef
commit
1143535d76
2 changed files with 9 additions and 0 deletions
|
@ -2899,3 +2899,7 @@ def parse_m3u8_attributes(attrib):
|
|||
val = val[1:-1]
|
||||
info[key] = val
|
||||
return info
|
||||
|
||||
|
||||
def urshift(val, n):
|
||||
return val >> n if val >= 0 else (val + 0x100000000) >> n
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue