1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 10:19:35 +02:00

Fix static ffmpeg version check

This commit is contained in:
Chocobozzz 2021-04-08 10:08:11 +02:00
parent 75cba40de7
commit 20373985c0
No known key found for this signature in database
GPG key ID: 583A612D890159BE
2 changed files with 3 additions and 3 deletions

View file

@ -657,7 +657,7 @@ function getFFmpegVersion () {
return execPromise(`${ffmpegPath} -version`)
.then(stdout => {
const parsed = stdout.match(/ffmpeg version .(\d+\.\d+\.\d+)/)
const parsed = stdout.match(/ffmpeg version .?(\d+\.\d+\.\d+)/)
if (!parsed || !parsed[1]) return rej(new Error(`Could not find ffmpeg version in ${stdout}`))
return res(parsed[1])