gst-plugins-good: rtph264depay: add stream-format and alignment fields to src template caps

Tim Müller tpm at kemper.freedesktop.org
Fri Feb 10 06:14:52 PST 2012


Module: gst-plugins-good
Branch: master
Commit: 6872b408730fd4eaacbb26fca79ebfb3f204e761
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=6872b408730fd4eaacbb26fca79ebfb3f204e761

Author: Tim-Philipp Müller <tim.muller at collabora.co.uk>
Date:   Wed Feb  8 20:58:04 2012 +0000

rtph264depay: add stream-format and alignment fields to src template caps

Because we can. And so we get a warning if we try to output avc with
nal alignment or somesuch.

https://bugzilla.gnome.org/show_bug.cgi?id=606662

---

 gst/rtp/gstrtph264depay.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/gst/rtp/gstrtph264depay.c b/gst/rtp/gstrtph264depay.c
index efe1725..295ea31 100644
--- a/gst/rtp/gstrtph264depay.c
+++ b/gst/rtp/gstrtph264depay.c
@@ -46,10 +46,13 @@ enum
 static const guint8 sync_bytes[] = { 0, 0, 0, 1 };
 
 static GstStaticPadTemplate gst_rtp_h264_depay_src_template =
-GST_STATIC_PAD_TEMPLATE ("src",
+    GST_STATIC_PAD_TEMPLATE ("src",
     GST_PAD_SRC,
     GST_PAD_ALWAYS,
-    GST_STATIC_CAPS ("video/x-h264")
+    GST_STATIC_CAPS ("video/x-h264, "
+        "stream-format = (string) avc, alignment = (string) au; "
+        "video/x-h264, "
+        "stream-format = (string) byte-stream, alignment = (string) { nal, au }")
     );
 
 static GstStaticPadTemplate gst_rtp_h264_depay_sink_template =



More information about the gstreamer-commits mailing list