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:
parent
75cba40de7
commit
20373985c0
2 changed files with 3 additions and 3 deletions
|
@ -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])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue