From f15c734d4fa6832ab3a3ce124fa447ae0e6577db Mon Sep 17 00:00:00 2001 From: Stash Dev Date: Sun, 31 Mar 2019 17:59:45 -0700 Subject: [PATCH] Another tweak to fix sprite generation --- pkg/manager/generator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/manager/generator.go b/pkg/manager/generator.go index b83cbcbd7..4859a6406 100644 --- a/pkg/manager/generator.go +++ b/pkg/manager/generator.go @@ -74,7 +74,7 @@ func (g *GeneratorInfo) configure() error { if numberOfFrames == 0 { numberOfFrames = ffmpeg.GetFrameFromRegex(stdErrString) } - if utils.IsValidFloat64(framerate) { + if !utils.IsValidFloat64(framerate) { time := ffmpeg.GetTimeFromRegex(stdErrString) framerate = math.Round((float64(numberOfFrames)/time)*100) / 100 }