Don't block GIF encoding if export framerate is resampled to <=50

Previously it was not possible to output to GIF if the output FPS is >50, even when resampling to <=50.
This commit is contained in:
N00MKRAD
2021-02-11 21:47:06 +01:00
parent 75dd3e2a48
commit 3e676807a9

View File

@@ -277,9 +277,9 @@ namespace Flowframes.Main
ShowMessage("Interpolation factor is not valid!");
passes = false;
}
if (passes && outMode == i.OutMode.VidGif && fpsOut > 50)
if (passes && outMode == i.OutMode.VidGif && fpsOut > 50 && Config.GetFloat("maxFps") != 0 && Config.GetFloat("maxFps") > 50)
{
ShowMessage("Invalid output frame rate!\nGIF does not properly support frame rates above 40 FPS.\nPlease use MP4, WEBM or another video format.");
ShowMessage("Invalid output frame rate!\nGIF does not properly support frame rates above 50 FPS.\nPlease use MP4, WEBM or another video format.");
passes = false;
}
if (passes && fpsOut < 1 || fpsOut > 1000)