forked from Github/frigate
Fix dict getting overwritten (#6830)
This commit is contained in:
@@ -1206,6 +1206,7 @@ def get_video_properties(url, get_duration=False):
|
|||||||
# Release the video stream
|
# Release the video stream
|
||||||
video.release()
|
video.release()
|
||||||
|
|
||||||
result = {"width": round(width), "height": round(height)}
|
result["width"] = round(width)
|
||||||
|
result["height"] = round(height)
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|||||||
Reference in New Issue
Block a user