mirror of https://github.com/stashapp/stash.git
Added detection for n-prefixed ffmpeg version string (#5102)
This commit is contained in:
parent
5512d37da3
commit
48c6373afa
|
@ -158,7 +158,7 @@ func (f *FFMpeg) getVersion() error {
|
|||
return err
|
||||
}
|
||||
|
||||
version_re := regexp.MustCompile(`ffmpeg version ((\d+)\.(\d+)(?:\.(\d+))?)`)
|
||||
version_re := regexp.MustCompile(`ffmpeg version n?((\d+)\.(\d+)(?:\.(\d+))?)`)
|
||||
stdoutStr := stdout.String()
|
||||
match := version_re.FindStringSubmatchIndex(stdoutStr)
|
||||
if match == nil {
|
||||
|
|
Loading…
Reference in New Issue