diff options
author | Chocobozzz <me@florianbigard.com> | 2021-05-07 14:23:43 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-05-07 14:23:43 +0200 |
commit | 1ff9f1cda3f8283241776cd8344e6671742b25f7 (patch) | |
tree | d2acf308a9fefb1f8ea82e819329b8ac9221e77a /server/helpers/ffmpeg-utils.ts | |
parent | ce4b4495ff3607045dc6d5656f72ebf5eb28cb73 (diff) | |
download | PeerTube-1ff9f1cda3f8283241776cd8344e6671742b25f7.tar.gz PeerTube-1ff9f1cda3f8283241776cd8344e6671742b25f7.tar.zst PeerTube-1ff9f1cda3f8283241776cd8344e6671742b25f7.zip |
Fix ffmpeg version parsing
Diffstat (limited to 'server/helpers/ffmpeg-utils.ts')
-rw-r--r-- | server/helpers/ffmpeg-utils.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/helpers/ffmpeg-utils.ts b/server/helpers/ffmpeg-utils.ts index f79b70469..25d9d4951 100644 --- a/server/helpers/ffmpeg-utils.ts +++ b/server/helpers/ffmpeg-utils.ts | |||
@@ -684,7 +684,7 @@ function getFFmpegVersion () { | |||
684 | 684 | ||
685 | // Fix ffmpeg version that does not include patch version (4.4 for example) | 685 | // Fix ffmpeg version that does not include patch version (4.4 for example) |
686 | let version = parsed[1] | 686 | let version = parsed[1] |
687 | if (version.match(/^\d+\.\d+/)) { | 687 | if (version.match(/^\d+\.\d+$/)) { |
688 | version += '.0' | 688 | version += '.0' |
689 | } | 689 | } |
690 | 690 | ||