Fix video codec in HLS playlist

pull/2315/head
Chocobozzz 2020-04-03 14:06:31 +02:00
parent 6a4c30de0e
commit a2b6ec7c3f
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 2 additions and 1 deletions

View File

@ -125,7 +125,8 @@ async function getVideoStreamCodec (path: string) {
baseProfile = baseProfileMatrix['High'] // Fallback baseProfile = baseProfileMatrix['High'] // Fallback
} }
const level = videoStream.level.toString(16) let level = videoStream.level.toString(16)
if (level.length === 1) level = `0${level}`
return `${videoCodec}.${baseProfile}${level}` return `${videoCodec}.${baseProfile}${level}`
} }