mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-01 19:42:03 +00:00
fix: remove defective single-keyframe hunk from artifact validation PR
The ffprobe.ts change unconditionally returned isProblematic: true for every single-keyframe file, regardless of duration. The correct fix lives in #3573 which probes real stream duration and applies the duration > 2 threshold. Stripping this hunk keeps #3574 scoped to artifact validation only. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
07878b6d12
commit
127b3a025e
@@ -1050,22 +1050,14 @@ async function analyzeKeyframeIntervalsUncached(filePath: string): Promise<Keyfr
|
||||
.map((line) => parseFloat(line.trim()))
|
||||
.filter((t) => Number.isFinite(t));
|
||||
|
||||
if (timestamps.length === 0) {
|
||||
if (timestamps.length < 2) {
|
||||
return {
|
||||
avgIntervalSeconds: 0,
|
||||
maxIntervalSeconds: 0,
|
||||
keyframeCount: 0,
|
||||
keyframeCount: timestamps.length,
|
||||
isProblematic: false,
|
||||
};
|
||||
}
|
||||
if (timestamps.length === 1) {
|
||||
return {
|
||||
avgIntervalSeconds: 0,
|
||||
maxIntervalSeconds: 0,
|
||||
keyframeCount: 1,
|
||||
isProblematic: true,
|
||||
};
|
||||
}
|
||||
|
||||
let maxInterval = 0;
|
||||
let totalInterval = 0;
|
||||
|
||||
Reference in New Issue
Block a user