From 3e676807a9be5c9ea11082aed729d4dbeebbab43 Mon Sep 17 00:00:00 2001 From: N00MKRAD Date: Thu, 11 Feb 2021 21:47:06 +0100 Subject: [PATCH] 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. --- Code/Main/InterpolateUtils.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Code/Main/InterpolateUtils.cs b/Code/Main/InterpolateUtils.cs index 6822836..0cb44d6 100644 --- a/Code/Main/InterpolateUtils.cs +++ b/Code/Main/InterpolateUtils.cs @@ -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)