Browse Source

Break if media headers are corrupt. fix #1828

pull/1925/head
Ruud 12 years ago
parent
commit
52163428e9
  1. 4
      libs/enzyme/mp4.py

4
libs/enzyme/mp4.py

@ -284,6 +284,10 @@ class MPEG4(core.AVContainer):
while datasize:
mdia = struct.unpack('>I4s', atomdata[pos:pos + 8])
if mdia[0] == 0:
break
if mdia[1] == 'mdhd':
# Parse based on version of mdhd header. See
# http://wiki.multimedia.cx/index.php?title=QuickTime_container#mdhd

Loading…
Cancel
Save