1
0
Fork 0

[downloader/ism] Support ec-3 codec (#5004)

Closes #296
Authored by: nixxo
This commit is contained in:
nixxo 2022-09-30 19:33:29 +02:00 committed by GitHub
commit 81b6102d20
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 293 additions and 3 deletions

View file

@ -138,6 +138,8 @@ def write_piff_header(stream, params):
if fourcc == 'AACL':
sample_entry_box = box(b'mp4a', sample_entry_payload)
if fourcc == 'EC-3':
sample_entry_box = box(b'ec-3', sample_entry_payload)
elif stream_type == 'video':
sample_entry_payload += u16.pack(0) # pre defined
sample_entry_payload += u16.pack(0) # reserved