From 3165c2ae53e645b14301bf4124386ad5d334173f Mon Sep 17 00:00:00 2001 From: subotac <73706465+subotac@users.noreply.github.com> Date: Fri, 7 Aug 2026 13:10:42 +0300 Subject: [PATCH] osc.lua: ignore seek ranges without usable duration seekRangesF() accepts a zero duration and produces NaN/Inf coordinates, which assdraw cannot format. Ignore seek-range metadata when the native duration property is unavailable or zero. Fixes #18344 --- player/lua/osc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player/lua/osc.lua b/player/lua/osc.lua index 7d5d255af246c..7cb8698df89ff 100644 --- a/player/lua/osc.lua +++ b/player/lua/osc.lua @@ -2533,7 +2533,7 @@ local function osc_init() if user_opts.seekrangestyle == "none" or not cache_enabled() then return nil end - if state.duration == nil then + if state.duration == nil or state.duration == 0 then return nil end local nranges = {}