aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorremitamine <remitamine@gmail.com>2016-02-02 22:14:23 +0100
committerremitamine <remitamine@gmail.com>2016-02-02 22:14:23 +0100
commit6fba62c87a39686c0424ce9acd0fd29700a21076 (patch)
tree6463b6690be09d9d2a72a918d6b0dd85c35c127c /youtube_dl
parent1df41411968b52d7fd6d0f0d233ad760aa5e6368 (diff)
downloadyoutube-dl-6fba62c87a39686c0424ce9acd0fd29700a21076.tar.xz
[ffmpeg] fix adding metadata when using --hls-prefer-native(#8350)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/postprocessor/ffmpeg.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/postprocessor/ffmpeg.py b/youtube_dl/postprocessor/ffmpeg.py
index d3d9d4f1d..e293e03e6 100644
--- a/youtube_dl/postprocessor/ffmpeg.py
+++ b/youtube_dl/postprocessor/ffmpeg.py
@@ -392,7 +392,7 @@ class FFmpegMetadataPP(FFmpegPostProcessor):
options.extend(['-metadata', '%s=%s' % (name, value)])
# https://github.com/rg3/youtube-dl/issues/8350
- if info['protocol'] == 'm3u8_native':
+ if info['protocol'] == 'm3u8_native' or self._downloader.params.get('hls_prefer_native', False):
options.extend(['-bsf:a', 'aac_adtstoasc'])
self._downloader.to_screen('[ffmpeg] Adding metadata to \'%s\'' % filename)