mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-25 08:32:11 +03:00
fix(video): make one-frame scene sampling deterministic
This commit is contained in:
@@ -339,6 +339,15 @@ export function calculateSamplingDecision(
|
||||
}
|
||||
|
||||
const frameCount = uniform.length;
|
||||
if (frameCount === 1) {
|
||||
return {
|
||||
candidateCount: candidates.length,
|
||||
...(focusWindow ? { focusWindow } : {}),
|
||||
policyEffective: "uniform",
|
||||
policyRequested: "scene_aware",
|
||||
timestamps: uniform,
|
||||
};
|
||||
}
|
||||
const selected =
|
||||
candidates.length <= frameCount
|
||||
? [...candidates]
|
||||
|
||||
Reference in New Issue
Block a user