fix example to use real boxes

This commit is contained in:
Lesmiscore 2022-07-14 09:38:57 +09:00
parent cd6e20b68e
commit 2ed0b5568e
No known key found for this signature in database
GPG key ID: 0EC2B52CF86236FF

View file

@ -104,14 +104,14 @@ def parse_mp4_boxes(r: RawIOBase):
Example: Path: Example: Path:
('test', b'123456') /test ('test', b'123456') /test
('box1', b'') /box1 (start of container box) ('moov', b'') /moov (start of container box)
('helo', b'abcdef') /box1/helo ('helo', b'abcdef') /moov/helo
('1984', b'1q84') /box1/1984 ('1984', b'1q84') /moov/1984
('http', b'') /box1/http (start of container box) ('trak', b'') /moov/trak (start of container box)
('keys', b'2022') /box1/http/keys ('keys', b'2022') /moov/trak/keys
(None , 'http') /box1/http (end of container box) (None , 'trak') /moov/trak (end of container box)
('topp', b'1991') /box1/topp ('topp', b'1991') /moov/topp
(None , 'box1') /box1 (end of container box) (None , 'moov') /moov (end of container box)
""" """
while True: while True: