[common] use AACL as the default fourcc when AudioTag is 255
authorfelix <felix.von.s@posteo.de>
Sat, 12 Nov 2016 21:15:51 +0000 (22:15 +0100)
committerSergey M․ <dstftw@gmail.com>
Sat, 30 Dec 2017 00:22:07 +0000 (07:22 +0700)
youtube_dl/extractor/common.py

index 35d427eec974a14ff27425780c13ae18be1f3aa7..5e7e7a3f7b0348b4591e35af926eb3fccb7f270c 100644 (file)
@@ -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)