aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfelix <felix.von.s@posteo.de>2016-11-12 22:15:51 +0100
committerSergey M․ <dstftw@gmail.com>2017-12-30 07:22:07 +0700
commit2501d41ef4b9ed0349cf4f9838e12873350e60d5 (patch)
treeb48b9bffee38814fac933b69b5b15bd3501ceb4c
parentd97cb84b313f94da76bff0520392334e753e2238 (diff)
downloadyoutube-dl-2501d41ef4b9ed0349cf4f9838e12873350e60d5.zip
youtube-dl-2501d41ef4b9ed0349cf4f9838e12873350e60d5.tar.gz
youtube-dl-2501d41ef4b9ed0349cf4f9838e12873350e60d5.tar.bz2
[common] use AACL as the default fourcc when AudioTag is 255
-rw-r--r--youtube_dl/extractor/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
index 35d427e..5e7e7a3 100644
--- a/youtube_dl/extractor/common.py
+++ b/youtube_dl/extractor/common.py
@@ -2054,7 +2054,7 @@ class InfoExtractor(object):
stream_timescale = int_or_none(stream.get('TimeScale')) or timescale
stream_name = stream.get('Name')
for track in stream.findall('QualityLevel'):
- fourcc = track.get('FourCC')
+ fourcc = track.get('FourCC', 'AACL' if track.get('AudioTag') == '255' else None)
# TODO: add support for WVC1 and WMAP
if fourcc not in ('H264', 'AVC1', 'AACL'):
self.report_warning('%s is not a supported codec' % fourcc)