Skip to content

Commit 7221fe1

Browse files
committed
Allow VisualSampleEntry version to be > 0. As far as I can tell, the padding should be the same.
1 parent 7a857e5 commit 7221fe1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

spatialmedia/mpeg/container.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,9 @@ def load(fh, position, end):
8282
sample_description_version = struct.unpack(">h", fh.read(2))[0]
8383
fh.seek(current_pos)
8484

85-
if sample_description_version == 0:
86-
padding = 78
87-
else:
88-
print("Unsupported video sample description version:",
85+
padding = 78
86+
if sample_description_version > 0:
87+
print("Warning: video sample description version > 0:",
8988
sample_description_version)
9089

9190
new_box = Container()

0 commit comments

Comments
 (0)