forked from DRMTalks/devine
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,
|
||||
width=get("width") 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":
|
||||
track_type = Audio
|
||||
|
|
Loading…
Reference in New Issue