mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
tests: fix rtpjpegpay test
Make the data we send to the jpeg payloader be a valid jpeg file because the payloader now expects this.
This commit is contained in:
parent
de4a7fc4c4
commit
5a5c0d6911
1 changed files with 23 additions and 9 deletions
|
@ -714,13 +714,20 @@ GST_START_TEST (rtp_vorbis)
|
||||||
GST_END_TEST;
|
GST_END_TEST;
|
||||||
static char rtp_jpeg_frame_data[] =
|
static char rtp_jpeg_frame_data[] =
|
||||||
{ /* SOF */ 0xFF, 0xC0, 0x00, 0x11, 0x08, 0x00, 0x08, 0x00, 0x08,
|
{ /* SOF */ 0xFF, 0xC0, 0x00, 0x11, 0x08, 0x00, 0x08, 0x00, 0x08,
|
||||||
0x03, 0x00, 0x21, 0x08, 0x00, 0x11, 0x08, 0x00, 0x11, 0x08,
|
0x03, 0x00, 0x21, 0x08, 0x01, 0x11, 0x08, 0x02, 0x11, 0x08,
|
||||||
/* DQT */ 0xFF, 0xDB, 0x00, 0x11, 0x08, 0x00, 0x08, 0x00, 0x08,
|
/* DQT */ 0xFF, 0xDB, 0x00, 0x43, 0x08,
|
||||||
0x03, 0x00, 0x21, 0x08, 0x00, 0x11, 0x08, 0x00, 0x11, 0x08,
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
/* DATA */ 0x00, 0x00, 0x00, 0x00, 0x00
|
/* DATA */ 0x00, 0x00, 0x00, 0x00, 0x00
|
||||||
};
|
};
|
||||||
|
|
||||||
static int rtp_jpeg_frame_data_size = 42;
|
static int rtp_jpeg_frame_data_size = sizeof (rtp_jpeg_frame_data);
|
||||||
|
|
||||||
static int rtp_jpeg_frame_count = 1;
|
static int rtp_jpeg_frame_count = 1;
|
||||||
|
|
||||||
|
@ -734,17 +741,24 @@ GST_START_TEST (rtp_jpeg)
|
||||||
GST_END_TEST;
|
GST_END_TEST;
|
||||||
static char rtp_jpeg_list_frame_data[] =
|
static char rtp_jpeg_list_frame_data[] =
|
||||||
{ /* SOF */ 0xFF, 0xC0, 0x00, 0x11, 0x08, 0x00, 0x08, 0x00, 0x08,
|
{ /* SOF */ 0xFF, 0xC0, 0x00, 0x11, 0x08, 0x00, 0x08, 0x00, 0x08,
|
||||||
0x03, 0x00, 0x21, 0x08, 0x00, 0x11, 0x08, 0x00, 0x11, 0x08,
|
0x03, 0x00, 0x21, 0x08, 0x01, 0x11, 0x08, 0x02, 0x11, 0x08,
|
||||||
/* DQT */ 0xFF, 0xDB, 0x00, 0x11, 0x08, 0x00, 0x08, 0x00, 0x08,
|
/* DQT */ 0xFF, 0xDB, 0x00, 0x43, 0x08,
|
||||||
0x03, 0x00, 0x21, 0x08, 0x00, 0x11, 0x08, 0x00, 0x11, 0x08,
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
/* DATA */ 0x00, 0x00, 0x00, 0x00, 0x00
|
/* DATA */ 0x00, 0x00, 0x00, 0x00, 0x00
|
||||||
};
|
};
|
||||||
|
|
||||||
static int rtp_jpeg_list_frame_data_size = 42;
|
static int rtp_jpeg_list_frame_data_size = sizeof (rtp_jpeg_list_frame_data);
|
||||||
|
|
||||||
static int rtp_jpeg_list_frame_count = 1;
|
static int rtp_jpeg_list_frame_count = 1;
|
||||||
|
|
||||||
static int rtp_jpeg_list_bytes_sent = 1 * 42;
|
static int rtp_jpeg_list_bytes_sent = 1 * sizeof (rtp_jpeg_list_frame_data);
|
||||||
|
|
||||||
GST_START_TEST (rtp_jpeg_list)
|
GST_START_TEST (rtp_jpeg_list)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue