summaryrefslogtreecommitdiffstats
path: root/tests/check
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2008-02-12 23:38:19 +0000
committerJan Schmidt <thaytan@mad.scientist.com>2008-02-12 23:38:19 +0000
commit4a7cbe84897d94309c860140d70940a9632d969b (patch)
treefecb57e4a8ab5d48d7a2be27306da169fd9df452 /tests/check
parent4bb12df00792f09185b7e12704f045ee4ee653f9 (diff)
fixes: #514889
Original commit message from CVS: patch by: Wim Taymans <wim.taymans@collabora.co.uk> fixes: #514889 * gst/rtp/gstrtph264pay.c: * gst/rtp/gstrtpmp4gdepay.c: * gst/rtp/gstrtpmp4gpay.c: * gst/rtp/gstrtpmp4gpay.h: * gst/rtp/gstrtptheorapay.c: * gst/rtp/gstrtpvorbispay.c: Fix various leaks shown up in valgrind - free sprops and buffer in error cases in H264 payloader - fix leak in mp4g depayloader when construction the caps - don't leak config string in the mp4g payloader - don't leak buffers and headers in theora and vorbis payloaders * tests/check/elements/rtp-payloading.c: Fix the RTP data test - Actually send valid amr data to the payloader instead of 20 zero-bytes - The mp4g payloader expects codec_data on the caps
Diffstat (limited to 'tests/check')
-rw-r--r--tests/check/elements/rtp-payloading.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/check/elements/rtp-payloading.c b/tests/check/elements/rtp-payloading.c
index 3d0acd09..13da5e80 100644
--- a/tests/check/elements/rtp-payloading.c
+++ b/tests/check/elements/rtp-payloading.c
@@ -323,10 +323,11 @@ GST_START_TEST (rtp_gsm)
GST_END_TEST;
static char rtp_amr_frame_data[] =
- { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
+ { 0x3c, 0x24, 0x03, 0xb3, 0x48, 0x10, 0x68, 0x46, 0x6c, 0xec, 0x03,
+ 0x7a, 0x37, 0x16, 0x41, 0x41, 0xc0, 0x00, 0x0d, 0xcd, 0x12, 0xed,
+ 0xad, 0x80, 0x00, 0x00, 0x11, 0x31, 0x00, 0x00, 0x0d, 0xa0
};
-static int rtp_amr_frame_data_size = 20;
+static int rtp_amr_frame_data_size = 32;
static int rtp_amr_frame_count = 1;
GST_START_TEST (rtp_amr)
@@ -481,7 +482,8 @@ static int rtp_mp4g_frame_count = 1;
GST_START_TEST (rtp_mp4g)
{
rtp_pipeline_test (rtp_mp4g_frame_data, rtp_mp4g_frame_data_size,
- rtp_mp4g_frame_count, "video/mpeg,mpegversion=4", "rtpmp4gpay",
+ rtp_mp4g_frame_count,
+ "video/mpeg,mpegversion=4,codec_data=(buffer)000001b001", "rtpmp4gpay",
"rtpmp4gdepay");
}