mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2026-05-06 09:53:24 +00:00
Merge e8bebe0b03 into 956b8c5855
This commit is contained in:
commit
84c2d41e5a
|
|
@ -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…
Reference in a new issue