mirror of
https://github.com/stashapp/stash.git
synced 2025-12-16 20:07:05 +03:00
Added detection for n-prefixed ffmpeg version string (#5102)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user