diff options
| author | Bond-009 <bond.009@outlook.com> | 2020-09-21 12:28:51 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-21 12:28:51 +0200 |
| commit | bf815ef3e1b2a74ad390d653b17fafec00ec19fb (patch) | |
| tree | f6b85f65354be55b303f719fd6d35882b3449a0b | |
| parent | 1f2e227610cd2eaf9abd38ee5b2310ed3e878421 (diff) | |
| parent | 5464eaed4ae0e1927883fce89d02ed2b6e60a745 (diff) | |
Merge pull request #4186 from BaronGreenback/versionMatchFix
Fixes #4185 : FFMPeg version match exception.
| -rw-r--r-- | MediaBrowser.MediaEncoding/Encoder/EncoderValidator.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/MediaBrowser.MediaEncoding/Encoder/EncoderValidator.cs b/MediaBrowser.MediaEncoding/Encoder/EncoderValidator.cs index c8bf5557b..3287f9814 100644 --- a/MediaBrowser.MediaEncoding/Encoder/EncoderValidator.cs +++ b/MediaBrowser.MediaEncoding/Encoder/EncoderValidator.cs @@ -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); |
