mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
check: fix make check
The mpeg parser now flags the stream as mpeg2 if there is a picture extension header, so remove it for mpeg1 data.
This commit is contained in:
parent
05cb4bc6a5
commit
385ae4ace1
1 changed files with 14 additions and 4 deletions
|
@ -68,6 +68,14 @@ static guint8 mpeg2_iframe[] = {
|
||||||
0x8b, 0x94, 0xa5, 0x22, 0x20
|
0x8b, 0x94, 0xa5, 0x22, 0x20
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static guint8 mpeg1_iframe[] = {
|
||||||
|
0x00, 0x00, 0x01, 0x00, 0x00, 0x0f, 0xff, 0xf8,
|
||||||
|
0x00, 0x00, 0x01, 0x01, 0x23, 0xf8, 0x7d,
|
||||||
|
0x29, 0x48, 0x8b, 0x94, 0xa5, 0x22, 0x20, 0x00,
|
||||||
|
0x00, 0x01, 0x02, 0x23, 0xf8, 0x7d, 0x29, 0x48,
|
||||||
|
0x8b, 0x94, 0xa5, 0x22, 0x20
|
||||||
|
};
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
verify_buffer (buffer_verify_data_s * vdata, GstBuffer * buffer)
|
verify_buffer (buffer_verify_data_s * vdata, GstBuffer * buffer)
|
||||||
{
|
{
|
||||||
|
@ -166,10 +174,12 @@ mpeg_video_parse_check_caps (guint version, guint8 * seq, gint size)
|
||||||
|
|
||||||
ctx_headers[0].data = seq;
|
ctx_headers[0].data = seq;
|
||||||
ctx_headers[0].size = size;
|
ctx_headers[0].size = size;
|
||||||
/* parser does not really care that mpeg1 and mpeg2 frame data
|
if (version == 1)
|
||||||
* should be a bit different */
|
caps = gst_parser_test_get_output_caps (mpeg1_iframe, sizeof (mpeg1_iframe),
|
||||||
caps = gst_parser_test_get_output_caps (mpeg2_iframe, sizeof (mpeg2_iframe),
|
NULL);
|
||||||
NULL);
|
else
|
||||||
|
caps = gst_parser_test_get_output_caps (mpeg2_iframe, sizeof (mpeg2_iframe),
|
||||||
|
NULL);
|
||||||
fail_unless (caps != NULL);
|
fail_unless (caps != NULL);
|
||||||
|
|
||||||
/* Check that the negotiated caps are as expected */
|
/* Check that the negotiated caps are as expected */
|
||||||
|
|
Loading…
Reference in a new issue