mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
Another tweak to fix sprite generation
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user