mirror of
				https://github.com/devine-dl/devine.git
				synced 2025-11-04 03:44:49 +00:00 
			
		
		
		
	Ignore Insufficient bits warning from shaka
This commit is contained in:
		
							parent
							
								
									9fff14af30
								
							
						
					
					
						commit
						7df6aa42b4
					
				@ -266,8 +266,14 @@ class Widevine:
 | 
			
		||||
            shaka_log_buffer = ""
 | 
			
		||||
            for line in iter(p.stderr.readline, ""):
 | 
			
		||||
                line = line.strip()
 | 
			
		||||
                if line and ":INFO:" not in line:
 | 
			
		||||
                    shaka_log_buffer += f"{line.strip()}\n"
 | 
			
		||||
                if not line:
 | 
			
		||||
                    continue
 | 
			
		||||
                if ":INFO:" in line:
 | 
			
		||||
                    continue
 | 
			
		||||
                if "Insufficient bits in bitstream for given AVC profile" in line:
 | 
			
		||||
                    # this is a warning and is something we don't have to worry about
 | 
			
		||||
                    continue
 | 
			
		||||
                shaka_log_buffer += f"{line.strip()}\n"
 | 
			
		||||
 | 
			
		||||
            if shaka_log_buffer:
 | 
			
		||||
                # wrap to console width - padding - '[Widevine]: '
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user