mirror of https://github.com/yt-dlp/yt-dlp.git
linter
This commit is contained in:
parent
d2d940ef25
commit
cd6e20b68e
|
@ -91,6 +91,7 @@ def unpack_ver_flags(value: bytes) -> Tuple[int, int]:
|
|||
MP4_CONTAINER_BOXES = ('moov', 'trak', 'edts', 'mdia', 'minf', 'dinf', 'stbl', 'mvex', 'moof', 'traf', 'vttc', 'tref', 'iref', 'mfra', 'meco', 'hnti', 'hinf', 'strk', 'strd', 'sinf', 'rinf', 'schi', 'trgr', 'udta', 'iprp', 'ipco')
|
||||
""" List of boxes that nests the other boxes """
|
||||
|
||||
|
||||
def parse_mp4_boxes(r: RawIOBase):
|
||||
"""
|
||||
Parses an ISO BMFF (which MP4 follows) and yields its boxes as a sequence.
|
||||
|
|
|
@ -102,7 +102,6 @@ class MP4FixupTimestampPP(PostProcessor):
|
|||
continue
|
||||
yield (btype, content)
|
||||
|
||||
|
||||
def modify_mp4(self, src, dst, bmdt_offset, sdur_cutoff):
|
||||
with open(src, 'rb') as r, open(dst, 'wb') as w:
|
||||
write_mp4_boxes(w, self.transform(parse_mp4_boxes(r)))
|
||||
|
|
Loading…
Reference in New Issue