Merge pull request #4186 from BaronGreenback/versionMatchFix

Fixes #4185 : FFMPeg version match exception.
This commit is contained in:
Bond-009 2020-09-21 12:28:51 +02:00 committed by GitHub
commit bf815ef3e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -212,7 +212,10 @@ namespace MediaBrowser.MediaEncoding.Encoder
if (match.Success)
{
return new Version(match.Groups[1].Value);
if (Version.TryParse(match.Groups[1].Value, out var result))
{
return result;
}
}
var versionMap = GetFFmpegLibraryVersions(output);