h264parse: tests: fix caps for avc format

If it has a codec_data field, it should also use the stream-format=avc as
codec_data doesn't make sense otherwise and the default should
be bytestream
This commit is contained in:
Thiago Santos 2014-08-25 13:33:15 -03:00
parent ab5ec2b7bf
commit 30a51ca547

View file

@ -381,7 +381,8 @@ GST_START_TEST (test_parse_packetized)
cdata = cdata =
gst_buffer_new_wrapped_full (GST_MEMORY_FLAG_READONLY, h264_codec_data, gst_buffer_new_wrapped_full (GST_MEMORY_FLAG_READONLY, h264_codec_data,
h264_codec_data_size, 0, h264_codec_data_size, NULL, NULL); h264_codec_data_size, 0, h264_codec_data_size, NULL, NULL);
gst_caps_set_simple (caps, "codec_data", GST_TYPE_BUFFER, cdata, NULL); gst_caps_set_simple (caps, "codec_data", GST_TYPE_BUFFER, cdata,
"stream-format", G_TYPE_STRING, "avc", NULL);
gst_buffer_unref (cdata); gst_buffer_unref (cdata);
desc = gst_caps_to_string (caps); desc = gst_caps_to_string (caps);
gst_caps_unref (caps); gst_caps_unref (caps);