vp8enc: Expose VP8 width/height limitations in the caps template
authorOlivier Crête <olivier.crete@collabora.com>
Wed, 1 Apr 2015 23:01:49 +0000 (19:01 -0400)
committerOlivier Crête <olivier.crete@collabora.com>
Wed, 1 Apr 2015 23:31:18 +0000 (19:31 -0400)
The VP8 format specification (RFC 6386 section 18.1) specifies
that the maximum size is 16383x16383.

ext/vpx/gstvp8enc.c

index 9d38de3..a3dd6f0 100644 (file)
@@ -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 =