Another tweak to fix sprite generation

This commit is contained in:
Stash Dev 2019-03-31 17:59:45 -07:00
parent f2b32083ad
commit f15c734d4f
1 changed files with 1 additions and 1 deletions

View File

@ -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
}