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 }