mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
Update M3u8Helper.kt
This commit is contained in:
parent
b788da1bd4
commit
b78fdcdce4
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ class M3u8Helper {
|
||||||
} else null
|
} else null
|
||||||
}
|
}
|
||||||
|
|
||||||
fun toBytes16Big(n: Int): ByteArray {
|
private fun toBytes16Big(n: Int): ByteArray {
|
||||||
return ByteArray(16) {
|
return ByteArray(16) {
|
||||||
val fixed = n / 256.0.pow((15 - it))
|
val fixed = n / 256.0.pow((15 - it))
|
||||||
(maxOf(0, fixed.toInt()) % 256).toByte()
|
(maxOf(0, fixed.toInt()) % 256).toByte()
|
||||||
|
|
Loading…
Reference in a new issue