|
|
@ -98,7 +98,7 @@ def write_piff_header(stream, params):
|
|
|
|
|
|
|
|
|
|
|
|
if is_audio:
|
|
|
|
if is_audio:
|
|
|
|
smhd_payload = s88.pack(0) # balance
|
|
|
|
smhd_payload = s88.pack(0) # balance
|
|
|
|
smhd_payload = u16.pack(0) # reserved
|
|
|
|
smhd_payload += u16.pack(0) # reserved
|
|
|
|
media_header_box = full_box(b'smhd', 0, 0, smhd_payload) # Sound Media Header
|
|
|
|
media_header_box = full_box(b'smhd', 0, 0, smhd_payload) # Sound Media Header
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
vmhd_payload = u16.pack(0) # graphics mode
|
|
|
|
vmhd_payload = u16.pack(0) # graphics mode
|
|
|
@ -126,7 +126,6 @@ def write_piff_header(stream, params):
|
|
|
|
if fourcc == 'AACL':
|
|
|
|
if fourcc == 'AACL':
|
|
|
|
sample_entry_box = box(b'mp4a', sample_entry_payload)
|
|
|
|
sample_entry_box = box(b'mp4a', sample_entry_payload)
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
sample_entry_payload = sample_entry_payload
|
|
|
|
|
|
|
|
sample_entry_payload += u16.pack(0) # pre defined
|
|
|
|
sample_entry_payload += u16.pack(0) # pre defined
|
|
|
|
sample_entry_payload += u16.pack(0) # reserved
|
|
|
|
sample_entry_payload += u16.pack(0) # reserved
|
|
|
|
sample_entry_payload += u32.pack(0) * 3 # pre defined
|
|
|
|
sample_entry_payload += u32.pack(0) * 3 # pre defined
|
|
|
|