瀏覽代碼

[external:ffmpeg] do not assume that ffmpeg unknown version format is new

Remita Amine 8 年之前
父節點
當前提交
be670b8e8f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      youtube_dl/downloader/external.py

+ 1 - 1
youtube_dl/downloader/external.py

@@ -275,7 +275,7 @@ class FFmpegFD(ExternalFD):
                 args += ['-f', 'mpegts']
             else:
                 args += ['-f', 'mp4']
-                if (ffpp.basename == 'ffmpeg' and is_outdated_version(ffpp._versions['ffmpeg'], '3.2')) and (not info_dict.get('acodec') or info_dict['acodec'].split('.')[0] in ('aac', 'mp4a')):
+                if (ffpp.basename == 'ffmpeg' and is_outdated_version(ffpp._versions['ffmpeg'], '3.2', False)) and (not info_dict.get('acodec') or info_dict['acodec'].split('.')[0] in ('aac', 'mp4a')):
                     args += ['-bsf:a', 'aac_adtstoasc']
         elif protocol == 'rtmp':
             args += ['-f', 'flv']