Added detection for n-prefixed ffmpeg version string (#5102)

This commit is contained in:
thundxrr
2024-07-29 18:54:04 +07:00
committed by GitHub
parent 5512d37da3
commit 48c6373afa

View File

@@ -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 {