From 12867fcb3dca4d897b60392c0c3385740575bf7c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Olivier=20Cr=C3=AAte?= Date: Wed, 1 Apr 2015 19:01:49 -0400 Subject: [PATCH] vp8enc: Expose VP8 width/height limitations in the caps template The VP8 format specification (RFC 6386 section 18.1) specifies that the maximum size is 16383x16383. --- ext/vpx/gstvp8enc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ext/vpx/gstvp8enc.c b/ext/vpx/gstvp8enc.c index 9d38de3..a3dd6f0 100644 --- a/ext/vpx/gstvp8enc.c +++ b/ext/vpx/gstvp8enc.c @@ -385,7 +385,10 @@ static GstStaticPadTemplate gst_vp8_enc_sink_template = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, - GST_STATIC_CAPS (GST_VIDEO_CAPS_MAKE ("I420")) + GST_STATIC_CAPS ("video/x-raw, " + "format = (string) \"I420\", " + "width = (int) [1, 16383], " + "height = (int) [1, 16383], framerate = (fraction) [ 0/1, MAX ]") ); static GstStaticPadTemplate gst_vp8_enc_src_template = -- 2.7.4