Fix Kling video detection across decoders

This commit is contained in:
Victor Kuznetsov committed 2026-09-05 13:43:00 -07:00
1 parent efdbfa0598
commit c1bf835e2f
2 files changed
+22 -1

No files matched your search

+1 -1
View File
@@ -803,7 +803,7 @@ def detect_kling_frame(
and logo_x is not None
):
font_x, _, font_width, _ = font_candidate.region
if logo_x <= font_x + round(font_width * 0.50):
if font_x - round(font_width * 0.08) <= logo_x <= font_x + round(font_width * 0.50):
best = logo_candidate
if best is None or best.region is None:
return FrameLocalization(frame_index, 0.0, None)