From f2b32083ada41536f2d43eaac5b13ebc377ebdfd Mon Sep 17 00:00:00 2001 From: Stash Dev Date: Fri, 29 Mar 2019 11:33:21 -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 e27192fda..b83cbcbd7 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 framerate == 0 { + if utils.IsValidFloat64(framerate) { time := ffmpeg.GetTimeFromRegex(stdErrString) framerate = math.Round((float64(numberOfFrames)/time)*100) / 100 }