mirror of
https://github.com/n00mkrad/flowframes.git
synced 2026-07-12 13:31:56 +02:00
Fixed last frame always being detected as scene change
This commit is contained in:
@@ -101,11 +101,6 @@ namespace Flowframes.Main
|
||||
for (int x = 0; x < frameFileContents.Count; x++)
|
||||
fileContent += frameFileContents[x];
|
||||
|
||||
bool discardLast = (sceneDetection && sceneFrames.Contains(Path.GetFileNameWithoutExtension(frameFiles.Last().Name)));
|
||||
|
||||
if (debug)
|
||||
fileContent += $"# discardLast: {discardLast}\n";
|
||||
|
||||
lastOutFileCount++;
|
||||
fileContent += $"file '{Paths.interpDir}/{lastOutFileCount.ToString().PadLeft(Padding.interpFrames, '0')}.{ext}'"; // Last frame (source)
|
||||
|
||||
@@ -152,7 +147,7 @@ namespace Flowframes.Main
|
||||
|
||||
if(i + 1 == frameFilesWithoutLast.Length) // Is last frame
|
||||
{
|
||||
if (sceneDetection && sceneFrames.Contains(Path.GetFileNameWithoutExtension(frameFiles.Last().Name))); // Scene detection for last frame
|
||||
if (sceneDetection && sceneFrames.Contains(Path.GetFileNameWithoutExtension(frameFiles.Last().Name))) // Scene detection for last frame
|
||||
discardThisFrame = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user