mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
rtp: fix rtptwcc to support big endian.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/942>
This commit is contained in:
parent
7918f80a43
commit
b5deff7b64
1 changed files with 3 additions and 3 deletions
|
@ -696,14 +696,14 @@ static guint
|
|||
_parse_run_length_chunk (GstBitReader * reader, GArray * twcc_packets,
|
||||
guint16 seqnum_offset, guint remaining_packets)
|
||||
{
|
||||
guint run_length;
|
||||
guint16 run_length;
|
||||
guint8 status_code;
|
||||
guint i;
|
||||
|
||||
gst_bit_reader_get_bits_uint8 (reader, &status_code, 2);
|
||||
gst_bit_reader_get_bits_uint16 (reader, &run_length, 13);
|
||||
|
||||
run_length = *(guint16 *) reader->data & ~0xE0; /* mask out the 3 last bits */
|
||||
run_length = MIN (remaining_packets, GST_READ_UINT16_BE (&run_length));
|
||||
run_length = MIN (remaining_packets, run_length);
|
||||
|
||||
for (i = 0; i < run_length; i++) {
|
||||
_add_twcc_packet (twcc_packets, seqnum_offset + i, status_code);
|
||||
|
|
Loading…
Reference in a new issue