aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/downloader/ism.py
diff options
context:
space:
mode:
authornixxo <nixxo@protonmail.com>2022-09-30 19:33:29 +0200
committerGitHub <noreply@github.com>2022-09-30 23:03:29 +0530
commit81b6102d2099eec78a2db9ae3d101a8503dd4f25 (patch)
tree69b04c7b1f06a20e7a569c6a0255f60913699d8a /yt_dlp/downloader/ism.py
parentacf306d1f97486c8c88455cfa294d11c818d41fe (diff)
[downloader/ism] Support ec-3 codec (#5004)
Closes #296 Authored by: nixxo
Diffstat (limited to 'yt_dlp/downloader/ism.py')
-rw-r--r--yt_dlp/downloader/ism.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/yt_dlp/downloader/ism.py b/yt_dlp/downloader/ism.py
index 801b5af81..c961dc62e 100644
--- a/yt_dlp/downloader/ism.py
+++ b/yt_dlp/downloader/ism.py
@@ -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