]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[external:ffmpeg] do not assume that ffmpeg unknown version format is new
authorRemita Amine <remitamine@gmail.com>
Thu, 9 Feb 2017 16:36:59 +0000 (17:36 +0100)
committerRemita Amine <remitamine@gmail.com>
Thu, 9 Feb 2017 16:36:59 +0000 (17:36 +0100)
youtube_dl/downloader/external.py

index 41e37261d034bbb61dc1932fd08283952e4bee25..bdd3545a2f17a731f2b9326be9de68034b4fb86e 100644 (file)
@@ -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']