mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-20 23:28:23 +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. Snap clipFrom back to the preceding keyframe so the
|
||||||
# segment always starts with a decodable frame.
|
# segment always starts with a decodable frame.
|
||||||
if "clipFrom" in clip:
|
if "clipFrom" in clip:
|
||||||
keyframe_ms = get_keyframe_before(
|
keyframe_ms = get_keyframe_before(recording.path, clip["clipFrom"])
|
||||||
recording.path, clip["clipFrom"]
|
|
||||||
)
|
|
||||||
if keyframe_ms is not None:
|
if keyframe_ms is not None:
|
||||||
gained = clip["clipFrom"] - keyframe_ms
|
gained = clip["clipFrom"] - keyframe_ms
|
||||||
clip["clipFrom"] = keyframe_ms
|
clip["clipFrom"] = keyframe_ms
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user