mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
check: add some more checks
Add header and payload length check in case of CSRCs. See https://bugzilla.gnome.org/show_bug.cgi?id=723196
This commit is contained in:
parent
0f8f852776
commit
c6915ea785
1 changed files with 3 additions and 0 deletions
|
@ -131,6 +131,9 @@ GST_START_TEST (test_rtp_buffer)
|
|||
fail_unless_equals_int (gst_rtp_buffer_get_csrc (&rtp, 0), 0);
|
||||
fail_unless_equals_int (gst_rtp_buffer_get_csrc (&rtp, 1), 0);
|
||||
fail_unless_equals_int (gst_rtp_buffer_get_csrc (&rtp, 2), 0);
|
||||
fail_unless_equals_int (gst_rtp_buffer_get_header_len (&rtp),
|
||||
RTP_HEADER_LEN + 4 * 3);
|
||||
fail_unless_equals_int (gst_rtp_buffer_get_payload_len (&rtp), 16);
|
||||
|
||||
data += RTP_HEADER_LEN; /* skip the other header stuff */
|
||||
gst_rtp_buffer_set_csrc (&rtp, 0, 0xf7c0);
|
||||
|
|
Loading…
Reference in a new issue