1
0
Fork 0

Fix video codec in HLS playlist

This commit is contained in:
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

View file

@ -125,7 +125,8 @@ async function getVideoStreamCodec (path: string) {
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}`
}