1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2025-06-30 15:26:19 +00:00

Merge e8bebe0b03d256371c38a983d7a6d2147d827cba into 711e72c292327674c4a0593fdbb83d6347738ec9

This commit is contained in:
Alex Richards 2025-02-24 05:10:37 +00:00 committed by GitHub
commit 696b892c3f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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