Update EncoderValidator.cs

This commit is contained in:
BaronGreenback 2020-09-19 16:40:39 +01:00 committed by GitHub
parent 4c6b60d69d
commit 5464eaed4a
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);