openh264dec: GstVideoDecoder works on frames, not sub-frames (e.g. NALs)
authorSebastian Dröge <sebastian@centricular.com>
Thu, 2 Oct 2014 13:21:37 +0000 (16:21 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 3 Oct 2014 14:23:36 +0000 (17:23 +0300)
And we can just pass complete AUs to the decoder without problems.

ext/openh264/gstopenh264dec.cpp

index f045f95..76a423f 100644 (file)
@@ -81,7 +81,7 @@ struct _GstOpenh264DecPrivate
 static GstStaticPadTemplate gst_openh264dec_sink_template = GST_STATIC_PAD_TEMPLATE("sink",
     GST_PAD_SINK,
     GST_PAD_ALWAYS,
-    GST_STATIC_CAPS("video/x-h264, stream-format=(string)byte-stream, alignment=(string)nal"));
+    GST_STATIC_CAPS("video/x-h264, stream-format=(string)byte-stream, alignment=(string)au"));
 
 static GstStaticPadTemplate gst_openh264dec_src_template = GST_STATIC_PAD_TEMPLATE("src",
     GST_PAD_SRC,