mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 07:38:16 +00:00
tests: Add G.729 RTP payloader/depayloader test
https://bugzilla.gnome.org/show_bug.cgi?id=606050
This commit is contained in:
parent
63a9db5826
commit
e8dcea17fc
1 changed files with 19 additions and 0 deletions
|
@ -750,6 +750,24 @@ GST_START_TEST (rtp_jpeg_list)
|
|||
}
|
||||
|
||||
GST_END_TEST;
|
||||
static char rtp_g729_frame_data[] =
|
||||
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
||||
};
|
||||
|
||||
static int rtp_g729_frame_data_size = 22;
|
||||
|
||||
static int rtp_g729_frame_count = 1;
|
||||
|
||||
GST_START_TEST (rtp_g729)
|
||||
{
|
||||
rtp_pipeline_test (rtp_g729_frame_data, rtp_g729_frame_data_size,
|
||||
rtp_g729_frame_count, "audio/G729", "rtpg729pay",
|
||||
"rtpg729depay", 0, 0, FALSE);
|
||||
}
|
||||
|
||||
GST_END_TEST;
|
||||
|
||||
/*
|
||||
* Creates the test suite.
|
||||
*
|
||||
|
@ -786,6 +804,7 @@ rtp_payloading_suite ()
|
|||
tcase_add_test (tc_chain, rtp_vorbis);
|
||||
tcase_add_test (tc_chain, rtp_jpeg);
|
||||
tcase_add_test (tc_chain, rtp_jpeg_list);
|
||||
tcase_add_test (tc_chain, rtp_g729);
|
||||
return s;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue