v4l2slh264dec: Support avc and avc3 formats
authorSeungha Yang <seungha@centricular.com>
Thu, 23 Apr 2020 16:56:57 +0000 (01:56 +0900)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 23 Apr 2020 23:38:03 +0000 (23:38 +0000)
h264decoder baseclass provides parsed sps/pps (from codec data) for
subclass. Also, since current implementation is putting start code prefix
manually, the format of stream should not be matter for subclass.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1214>

sys/v4l2codecs/gstv4l2codech264dec.c

index 7ac430cc05f50f8cccb15ac22d43857fb40f26e0..7cdaf2717971f82457c0edb984303c8e38a1f4bf 100644 (file)
@@ -39,7 +39,8 @@ static GstStaticPadTemplate sink_template =
 GST_STATIC_PAD_TEMPLATE (GST_VIDEO_DECODER_SINK_NAME,
     GST_PAD_SINK, GST_PAD_ALWAYS,
     GST_STATIC_CAPS ("video/x-h264, "
-        "stream-format=(string) byte-stream, alignment=(string) au")
+        "stream-format=(string) { avc, avc3, byte-stream }, "
+        "alignment=(string) au")
     );
 
 static GstStaticPadTemplate src_template =