mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-23 11:37:17 +00:00
fix(transcode): replace isNaN with isFinite to guard against Infinity frameRate
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user