diff options
Diffstat (limited to 'server/helpers')
-rw-r--r-- | server/helpers/ffmpeg-utils.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/helpers/ffmpeg-utils.ts b/server/helpers/ffmpeg-utils.ts index e0e408ea0..9dac4448e 100644 --- a/server/helpers/ffmpeg-utils.ts +++ b/server/helpers/ffmpeg-utils.ts | |||
@@ -125,7 +125,8 @@ async function getVideoStreamCodec (path: string) { | |||
125 | baseProfile = baseProfileMatrix['High'] // Fallback | 125 | baseProfile = baseProfileMatrix['High'] // Fallback |
126 | } | 126 | } |
127 | 127 | ||
128 | const level = videoStream.level.toString(16) | 128 | let level = videoStream.level.toString(16) |
129 | if (level.length === 1) level = `0${level}` | ||
129 | 130 | ||
130 | return `${videoCodec}.${baseProfile}${level}` | 131 | return `${videoCodec}.${baseProfile}${level}` |
131 | } | 132 | } |