mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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:
parent
ab5ec2b7bf
commit
30a51ca547
1 changed files with 2 additions and 1 deletions
|
@ -381,7 +381,8 @@ GST_START_TEST (test_parse_packetized)
|
|||
cdata =
|
||||
gst_buffer_new_wrapped_full (GST_MEMORY_FLAG_READONLY, h264_codec_data,
|
||||
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);
|
||||
desc = gst_caps_to_string (caps);
|
||||
gst_caps_unref (caps);
|
||||
|
|
Loading…
Reference in a new issue