mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-11-04 08:35:12 +00:00 
			
		
		
		
	[common] Fix FourCC fallback when parsing ISM (#372)
In some DASH manifests, the FourCC attribute is actually present, but empty. We thus apply the same fallback to 'AACL' that we do when the attribute is entirely absent. Authored by: fstirlitz
This commit is contained in:
		@@ -2876,7 +2876,7 @@ class InfoExtractor(object):
 | 
				
			|||||||
            stream_name = stream.get('Name')
 | 
					            stream_name = stream.get('Name')
 | 
				
			||||||
            stream_language = stream.get('Language', 'und')
 | 
					            stream_language = stream.get('Language', 'und')
 | 
				
			||||||
            for track in stream.findall('QualityLevel'):
 | 
					            for track in stream.findall('QualityLevel'):
 | 
				
			||||||
                fourcc = track.get('FourCC', 'AACL' if track.get('AudioTag') == '255' else None)
 | 
					                fourcc = track.get('FourCC') or ('AACL' if track.get('AudioTag') == '255' else None)
 | 
				
			||||||
                # TODO: add support for WVC1 and WMAP
 | 
					                # TODO: add support for WVC1 and WMAP
 | 
				
			||||||
                if fourcc not in ('H264', 'AVC1', 'AACL', 'TTML'):
 | 
					                if fourcc not in ('H264', 'AVC1', 'AACL', 'TTML'):
 | 
				
			||||||
                    self.report_warning('%s is not a supported codec' % fourcc)
 | 
					                    self.report_warning('%s is not a supported codec' % fourcc)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user