Avoid running out of precision when multiplying input fps with interp factor by using long

This commit is contained in:
n00mkrad
2022-04-20 05:36:49 +02:00
parent a8f18032f3
commit 62944cdb48

View File

@@ -53,7 +53,7 @@ namespace Flowframes
inFpsDetected = inFpsDetectedArg;
inFps = inFpsArg;
interpFactor = interpFactorArg;
outFps = inFpsArg * interpFactorArg;
outFps = inFpsArg * (long)interpFactorArg;
outItsScale = itsScale;
outMode = outModeArg;
model = modelArg;