mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-09-11 12:06:14 +00:00
Edit FCastCastingDevice.kt
This commit is contained in:
parent
2ceb4c5644
commit
658cbc5e00
1 changed files with 1 additions and 1 deletions
|
@ -348,7 +348,7 @@ class FCastCastingDevice : CastingDevice {
|
|||
headerBytesRead += read
|
||||
}
|
||||
|
||||
val size = ((buffer[3].toLong() shl 24) or (buffer[2].toLong() shl 16) or (buffer[1].toLong() shl 8) or buffer[0].toLong()).toInt();
|
||||
val size = ((buffer[3].toUByte().toLong() shl 24) or (buffer[2].toUByte().toLong() shl 16) or (buffer[1].toUByte().toLong() shl 8) or buffer[0].toUByte().toLong()).toInt();
|
||||
if (size > buffer.size) {
|
||||
Logger.w(TAG, "Packets larger than $size bytes are not supported.")
|
||||
break
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue