mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-16 16:37:48 +01:00
Better code for config defaults
This commit is contained in:
@@ -108,7 +108,7 @@ namespace Flowframes.Main
|
||||
static int GetLoopTimes(string framesOutPath)
|
||||
{
|
||||
int times = -1;
|
||||
int minLength = Config.GetInt("minOutVidLength");
|
||||
int minLength = Config.GetInt("minVidLength");
|
||||
int minFrameCount = (minLength * i.currentOutFps).RoundToInt();
|
||||
int outFrames = new DirectoryInfo(framesOutPath).GetFiles($"*.{InterpolateUtils.lastExt}", SearchOption.TopDirectoryOnly).Length;
|
||||
if (outFrames / i.currentOutFps < minLength)
|
||||
|
||||
Reference in New Issue
Block a user