parent
264044286d
commit
4e6a693057
42 changed files with 85 additions and 191 deletions
|
|
@ -103,7 +103,7 @@ def _parse_ts(ts):
|
|||
into an MPEG PES timestamp: a tick counter at 90 kHz resolution.
|
||||
"""
|
||||
return 90 * sum(
|
||||
int(part or 0) * mult for part, mult in zip(ts.groups(), (3600_000, 60_000, 1000, 1)))
|
||||
int(part or 0) * mult for part, mult in zip(ts.groups(), (3600_000, 60_000, 1000, 1), strict=True))
|
||||
|
||||
|
||||
def _format_ts(ts):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue