mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-17 01:20:19 +00:00
v4l2: Fix h264 caps
V4L2_PIX_FMT_H264 is documentated as byte-stream (with start code). The ensure proper negotiation with element like h264parse. https://bugzilla.gnome.org/show_bug.cgi?id=720568
This commit is contained in:
parent
e821de3494
commit
092e7605d3
1 changed files with 3 additions and 1 deletions
|
@ -1375,7 +1375,9 @@ gst_v4l2_object_v4l2fourcc_to_structure (guint32 fourcc)
|
||||||
#endif
|
#endif
|
||||||
#ifdef V4L2_PIX_FMT_H264
|
#ifdef V4L2_PIX_FMT_H264
|
||||||
case V4L2_PIX_FMT_H264: /* H.264 */
|
case V4L2_PIX_FMT_H264: /* H.264 */
|
||||||
structure = gst_structure_new_empty ("video/x-h264");
|
structure = gst_structure_new ("video/x-h264",
|
||||||
|
"stream-format", G_TYPE_STRING, "byte-stream", "alignment",
|
||||||
|
G_TYPE_STRING, "au", NULL);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
case V4L2_PIX_FMT_RGB332:
|
case V4L2_PIX_FMT_RGB332:
|
||||||
|
|
Loading…
Reference in a new issue