From 4cca6efda8837aa3fafb45c68cc0371e280c1e6e Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Wed, 20 May 2015 15:04:40 -0400 Subject: [PATCH] vtdec: Require width and height field for H264 This decoder does not work if width and height field are not set in the sinkpad caps. Let's make this explicit by adding them to the template caps. https://bugzilla.gnome.org/show_bug.cgi?id=749655 --- sys/applemedia/vtdec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/applemedia/vtdec.c b/sys/applemedia/vtdec.c index 8c22e24d28..ce6fb9843b 100644 --- a/sys/applemedia/vtdec.c +++ b/sys/applemedia/vtdec.c @@ -87,7 +87,8 @@ static GstStaticPadTemplate gst_vtdec_sink_template = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, - GST_STATIC_CAPS ("video/x-h264, stream-format=avc, alignment=au;" + GST_STATIC_CAPS ("video/x-h264, stream-format=avc, alignment=au," + " width=(int)[1, MAX], height=(int)[1, MAX];" "video/mpeg, mpegversion=2;" "image/jpeg") );