mirror of
				https://github.com/devine-dl/devine.git
				synced 2025-11-04 03:44:49 +00:00 
			
		
		
		
	Fix DASH FPS error when SegmentBase is not found
This commit is contained in:
		
							parent
							
								
									883c9ae063
								
							
						
					
					
						commit
						f3cfaa3ab3
					
				@ -154,7 +154,7 @@ class DASH:
 | 
				
			|||||||
                            bitrate=get("bandwidth") or None,
 | 
					                            bitrate=get("bandwidth") or None,
 | 
				
			||||||
                            width=get("width") or 0,
 | 
					                            width=get("width") or 0,
 | 
				
			||||||
                            height=get("height") or 0,
 | 
					                            height=get("height") or 0,
 | 
				
			||||||
                            fps=get("frameRate") or rep.find("SegmentBase", {}).get("timescale") or None
 | 
					                            fps=get("frameRate") or (rep.find("SegmentBase") or {}).get("timescale") or None
 | 
				
			||||||
                        )
 | 
					                        )
 | 
				
			||||||
                    elif content_type == "audio":
 | 
					                    elif content_type == "audio":
 | 
				
			||||||
                        track_type = Audio
 | 
					                        track_type = Audio
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user