1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-07-10 07:18:33 +00:00

[utils] parse_codecs: Handle IAMF formats

Authored by: bashonly
This commit is contained in:
bashonly 2025-05-30 16:20:23 -05:00
parent 201812100f
commit 42fac496e0
No known key found for this signature in database
GPG Key ID: 783F096F253D15B0

View File

@ -3040,7 +3040,7 @@ def parse_codecs(codecs_str):
elif parts[:2] == ['vp9', '2']: elif parts[:2] == ['vp9', '2']:
hdr = 'HDR10' hdr = 'HDR10'
elif parts[0] in ('flac', 'mp4a', 'opus', 'vorbis', 'mp3', 'aac', 'ac-4', elif parts[0] in ('flac', 'mp4a', 'opus', 'vorbis', 'mp3', 'aac', 'ac-4',
'ac-3', 'ec-3', 'eac3', 'dtsc', 'dtse', 'dtsh', 'dtsl'): 'ac-3', 'ec-3', 'eac3', 'dtsc', 'dtse', 'dtsh', 'dtsl', 'iamf'):
acodec = acodec or full_codec acodec = acodec or full_codec
elif parts[0] in ('stpp', 'wvtt'): elif parts[0] in ('stpp', 'wvtt'):
scodec = scodec or full_codec scodec = scodec or full_codec