aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/ffmpeg-utils.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-04-08 10:08:11 +0200
committerChocobozzz <me@florianbigard.com>2021-04-08 10:08:11 +0200
commit20373985c0d83f672ece5c061f4c5e96942f6243 (patch)
tree552a87731935ce5966368fd40c4cc7ebb1af853f /server/helpers/ffmpeg-utils.ts
parent75cba40de749fa8bf6cd767acbfaf478a6a8acbd (diff)
downloadPeerTube-20373985c0d83f672ece5c061f4c5e96942f6243.tar.gz
PeerTube-20373985c0d83f672ece5c061f4c5e96942f6243.tar.zst
PeerTube-20373985c0d83f672ece5c061f4c5e96942f6243.zip
Fix static ffmpeg version check
Diffstat (limited to 'server/helpers/ffmpeg-utils.ts')
-rw-r--r--server/helpers/ffmpeg-utils.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/helpers/ffmpeg-utils.ts b/server/helpers/ffmpeg-utils.ts
index 69cd397b9..01c3aa5f7 100644
--- a/server/helpers/ffmpeg-utils.ts
+++ b/server/helpers/ffmpeg-utils.ts
@@ -657,7 +657,7 @@ function getFFmpegVersion () {
657 657
658 return execPromise(`${ffmpegPath} -version`) 658 return execPromise(`${ffmpegPath} -version`)
659 .then(stdout => { 659 .then(stdout => {
660 const parsed = stdout.match(/ffmpeg version .(\d+\.\d+\.\d+)/) 660 const parsed = stdout.match(/ffmpeg version .?(\d+\.\d+\.\d+)/)
661 if (!parsed || !parsed[1]) return rej(new Error(`Could not find ffmpeg version in ${stdout}`)) 661 if (!parsed || !parsed[1]) return rej(new Error(`Could not find ffmpeg version in ${stdout}`))
662 662
663 return res(parsed[1]) 663 return res(parsed[1])