mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
rtp: fix test_twcc_header_and_run to support big endian.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/942>
This commit is contained in:
parent
b5deff7b64
commit
b289cc6788
1 changed files with 3 additions and 3 deletions
|
@ -2749,9 +2749,9 @@ GST_START_TEST (test_twcc_header_and_run_length)
|
||||||
fail_unless_equals_int (0x20, fci_data[8] & 0x60);
|
fail_unless_equals_int (0x20, fci_data[8] & 0x60);
|
||||||
|
|
||||||
/* packets in run_length */
|
/* packets in run_length */
|
||||||
run_length = *((guint16 *) & fci_data[8]);
|
run_length = GST_READ_UINT16_BE (&fci_data[8]);
|
||||||
run_length = run_length & ~0xE0; /* mask out the 3 last bits */
|
run_length = run_length & ~0xE000; /* mask out the upper 3 status bits */
|
||||||
fail_unless_equals_int (td->num_packets, GST_READ_UINT16_BE (&run_length));
|
fail_unless_equals_int (td->num_packets, run_length);
|
||||||
|
|
||||||
/* first recv-delta always 0 */
|
/* first recv-delta always 0 */
|
||||||
fail_unless_equals_int (0, fci_data[10]);
|
fail_unless_equals_int (0, fci_data[10]);
|
||||||
|
|
Loading…
Reference in a new issue