mirror of
				https://github.com/ytdl-org/youtube-dl.git
				synced 2025-11-01 09:26:45 -07:00 
			
		
		
		
	[utils] add ac-3 to the list of audio codecs in parse_codecs
This commit is contained in:
		@@ -2183,7 +2183,7 @@ def parse_codecs(codecs_str):
 | 
				
			|||||||
        if codec in ('avc1', 'avc2', 'avc3', 'avc4', 'vp9', 'vp8', 'hev1', 'hev2', 'h263', 'h264', 'mp4v'):
 | 
					        if codec in ('avc1', 'avc2', 'avc3', 'avc4', 'vp9', 'vp8', 'hev1', 'hev2', 'h263', 'h264', 'mp4v'):
 | 
				
			||||||
            if not vcodec:
 | 
					            if not vcodec:
 | 
				
			||||||
                vcodec = full_codec
 | 
					                vcodec = full_codec
 | 
				
			||||||
        elif codec in ('mp4a', 'opus', 'vorbis', 'mp3', 'aac'):
 | 
					        elif codec in ('mp4a', 'opus', 'vorbis', 'mp3', 'aac', 'ac-3'):
 | 
				
			||||||
            if not acodec:
 | 
					            if not acodec:
 | 
				
			||||||
                acodec = full_codec
 | 
					                acodec = full_codec
 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user