mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-06-22 19:36:20 +00:00
Merge e8bebe0b03d256371c38a983d7a6d2147d827cba into c052a16f72af7dd7671d4dd62826de71cd99dfb6
This commit is contained in:
commit
1cfe2a05d5
@ -276,7 +276,10 @@ class FFmpegExtractAudioPP(FFmpegPostProcessor):
|
||||
acodec = 'copy'
|
||||
extension = 'm4a'
|
||||
more_opts = ['-bsf:a', 'aac_adtstoasc']
|
||||
elif filecodec in ['aac', 'flac', 'mp3', 'vorbis', 'opus']:
|
||||
elif (
|
||||
filecodec in ['aac', 'flac', 'vorbis', 'opus'] or
|
||||
(filecodec == 'mp3' and self._preferredquality is None)
|
||||
):
|
||||
# Lossless if possible
|
||||
acodec = 'copy'
|
||||
extension = filecodec
|
||||
|
Loading…
x
Reference in New Issue
Block a user