mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-10 10:33:11 +03:00
formatting
This commit is contained in:
parent
ffe40932a0
commit
7bcd8088d0
@ -907,9 +907,7 @@ async def vod_ts(
|
||||
# segment. Snap clipFrom back to the preceding keyframe so the
|
||||
# segment always starts with a decodable frame.
|
||||
if "clipFrom" in clip:
|
||||
keyframe_ms = get_keyframe_before(
|
||||
recording.path, clip["clipFrom"]
|
||||
)
|
||||
keyframe_ms = get_keyframe_before(recording.path, clip["clipFrom"])
|
||||
if keyframe_ms is not None:
|
||||
gained = clip["clipFrom"] - keyframe_ms
|
||||
clip["clipFrom"] = keyframe_ms
|
||||
|
||||
Loading…
Reference in New Issue
Block a user