rtpmp4apay2: fix payload size prefix

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/2391>
This commit is contained in:
François Laignel 2025-07-23 17:53:16 +02:00
parent 0a7cbb8d59
commit b5af06c88b

View file

@ -230,7 +230,7 @@ impl RtpBasePay2Impl for RtpMpeg4AudioPay {
let mut rem_size = buffer_ref.size();
while rem_size > 0xff {
size_prefix.push(0xff);
rem_size >>= 8;
rem_size -= 0xff;
}
size_prefix.push(rem_size as u8);