0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-27 03:03:01 +00:00

[ffmpeg] fix condition(fixes #8440)

This commit is contained in:
remitamine 2016-02-05 15:12:06 +01:00
parent 008ab0f814
commit 593e0f43b4

View file

@ -392,7 +392,7 @@ def run(self, info):
options.extend(['-metadata', '%s=%s' % (name, value)]) options.extend(['-metadata', '%s=%s' % (name, value)])
# https://github.com/rg3/youtube-dl/issues/8350 # https://github.com/rg3/youtube-dl/issues/8350
if info['protocol'] == 'm3u8_native' or self._downloader.params.get('hls_prefer_native', False): if info.get('protocol') == 'm3u8_native' or self._downloader.params.get('hls_prefer_native', False):
options.extend(['-bsf:a', 'aac_adtstoasc']) options.extend(['-bsf:a', 'aac_adtstoasc'])
self._downloader.to_screen('[ffmpeg] Adding metadata to \'%s\'' % filename) self._downloader.to_screen('[ffmpeg] Adding metadata to \'%s\'' % filename)