From c6915ea785c402512b490bab23c2b92b4e32732a Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 4 Feb 2014 14:31:29 +0100 Subject: [PATCH] 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 --- tests/check/libs/rtp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/check/libs/rtp.c b/tests/check/libs/rtp.c index 601200d56f..6f8a3b32b6 100644 --- a/tests/check/libs/rtp.c +++ b/tests/check/libs/rtp.c @@ -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);