fix(transcode): replace isNaN with isFinite to guard against Infinity frameRate

This commit is contained in:
yiling
2026-06-29 10:55:28 +08:00
parent 9ca9b2d8e4
commit adb5f58535
+1 -1
View File
@@ -191,7 +191,7 @@ export class TranscodeService {
calculatedFps = parseFloat(params.frameRate)
}
}
if (!isNaN(calculatedFps) && calculatedFps > 0) {
if (Number.isFinite(calculatedFps) && calculatedFps > 0) {
const roundedFps = Math.max(1, Math.round(calculatedFps))
args.push(
'-r',