aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-10-18 09:44:43 +0200
committerChocobozzz <me@florianbigard.com>2018-10-18 10:44:16 +0200
commitcdf4cb9eaf5f6bc71f7c1e1963c07575f1d2593d (patch)
tree344774a9b943db9bf1e46ff091a0df5da1bac7ad /server/initializers
parente27ff5da6ed7bc1f56f50f862b80fb0c7d8a6d98 (diff)
downloadPeerTube-cdf4cb9eaf5f6bc71f7c1e1963c07575f1d2593d.tar.gz
PeerTube-cdf4cb9eaf5f6bc71f7c1e1963c07575f1d2593d.tar.zst
PeerTube-cdf4cb9eaf5f6bc71f7c1e1963c07575f1d2593d.zip
Fix transcoding
Diffstat (limited to 'server/initializers')
-rw-r--r--server/initializers/checker-before-init.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/initializers/checker-before-init.ts b/server/initializers/checker-before-init.ts
index 4f46d406a..9dfb5d68c 100644
--- a/server/initializers/checker-before-init.ts
+++ b/server/initializers/checker-before-init.ts
@@ -77,7 +77,7 @@ async function checkFFmpeg (CONFIG: { TRANSCODING: { ENABLED: boolean } }) {
77 } 77 }
78 } 78 }
79 79
80 checkFFmpegEncoders() 80 return checkFFmpegEncoders()
81} 81}
82 82
83// Optional encoders, if present, can be used to improve transcoding 83// Optional encoders, if present, can be used to improve transcoding
@@ -95,10 +95,10 @@ async function checkFFmpegEncoders (): Promise<Map<string, boolean>> {
95 supportedOptionalEncoders = new Map<string, boolean>() 95 supportedOptionalEncoders = new Map<string, boolean>()
96 96
97 for (const encoder of optionalEncoders) { 97 for (const encoder of optionalEncoders) {
98 supportedOptionalEncoders.set(encoder, 98 supportedOptionalEncoders.set(encoder, encoders[encoder] !== undefined)
99 encoders[encoder] !== undefined
100 )
101 } 99 }
100
101 return supportedOptionalEncoders
102} 102}
103 103
104// --------------------------------------------------------------------------- 104// ---------------------------------------------------------------------------