Update M3u8Helper.kt

This commit is contained in:
Arjix 2021-09-01 16:54:10 +03:00 committed by GitHub
parent b788da1bd4
commit b78fdcdce4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,7 +23,7 @@ class M3u8Helper {
} else null
}
fun toBytes16Big(n: Int): ByteArray {
private fun toBytes16Big(n: Int): ByteArray {
return ByteArray(16) {
val fixed = n / 256.0.pow((15 - it))
(maxOf(0, fixed.toInt()) % 256).toByte()