From 092e7605d3b534510291a4dbf3ff9930afa756b3 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Tue, 4 Jun 2013 23:34:04 -0400 Subject: [PATCH] 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 --- sys/v4l2/gstv4l2object.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/v4l2/gstv4l2object.c b/sys/v4l2/gstv4l2object.c index bc949524d8..e3e43ed145 100644 --- a/sys/v4l2/gstv4l2object.c +++ b/sys/v4l2/gstv4l2object.c @@ -1375,7 +1375,9 @@ gst_v4l2_object_v4l2fourcc_to_structure (guint32 fourcc) #endif #ifdef V4L2_PIX_FMT_H264 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; #endif case V4L2_PIX_FMT_RGB332: