Another tweak to fix sprite generation

This commit is contained in:
Stash Dev 2019-03-29 11:33:21 -07:00
parent 182afad695
commit f2b32083ad
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 framerate == 0 {
if utils.IsValidFloat64(framerate) {
time := ffmpeg.GetTimeFromRegex(stdErrString)
framerate = math.Round((float64(numberOfFrames)/time)*100) / 100
}