mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[Merger] Do not add aac_adtstoasc
to non-hls audio
This commit is contained in:
parent
ba10757412
commit
9dda99f2fc
1 changed files with 2 additions and 1 deletions
|
@ -732,7 +732,8 @@ def run(self, info):
|
|||
for (i, fmt) in enumerate(info['requested_formats']):
|
||||
if fmt.get('acodec') != 'none':
|
||||
args.extend(['-map', f'{i}:a:0'])
|
||||
if self.get_audio_codec(fmt['filepath']) == 'aac':
|
||||
aac_fixup = fmt['protocol'].startswith('m3u8') and self.get_audio_codec(fmt['filepath']) == 'aac'
|
||||
if aac_fixup:
|
||||
args.extend([f'-bsf:a:{audio_streams}', 'aac_adtstoasc'])
|
||||
audio_streams += 1
|
||||
if fmt.get('vcodec') != 'none':
|
||||
|
|
Loading…
Reference in a new issue