diff options
author | David Fernandez <d.fernandezlop@gmail.com> | 2018-02-26 17:28:25 +0100 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2021-05-05 16:29:13 -0400 |
commit | 828d1d0d182b59413237347e969dd05fadcc303f (patch) | |
tree | 4f81585493ecc4576771c6f1a9c6f94bb7af8a81 | |
parent | 4d4b82ffdc625be5269cfea2f35b85afbe406e8c (diff) |
x264enc: Change accepted caps width and height from [16, MAX] to [1, MAX]
There are cases where the video size might be less than 16x16.
This change allows the x264 encoder to accept this cases.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-ugly/-/merge_requests/44>
-rw-r--r-- | docs/gst_plugins_cache.json | 2 | ||||
-rw-r--r-- | ext/x264/gstx264enc.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/docs/gst_plugins_cache.json b/docs/gst_plugins_cache.json index fb6d824d..e3290a1a 100644 --- a/docs/gst_plugins_cache.json +++ b/docs/gst_plugins_cache.json @@ -1198,7 +1198,7 @@ "long-name": "x264enc", "pad-templates": { "sink": { - "caps": "video/x-raw:\n framerate: [ 0/1, 2147483647/1 ]\n width: [ 16, 2147483647 ]\n height: [ 16, 2147483647 ]\n format: { Y444, Y42B, I420, YV12, NV12, Y444_10LE, I422_10LE, I420_10LE }\n", + "caps": "video/x-raw:\n framerate: [ 0/1, 2147483647/1 ]\n width: [ 1, 2147483647 ]\n height: [ 1, 2147483647 ]\n format: { Y444, Y42B, I420, YV12, NV12, Y444_10LE, I422_10LE, I420_10LE }\n", "direction": "sink", "presence": "always" }, diff --git a/ext/x264/gstx264enc.c b/ext/x264/gstx264enc.c index 07dff722..38571db9 100644 --- a/ext/x264/gstx264enc.c +++ b/ext/x264/gstx264enc.c @@ -1202,8 +1202,8 @@ gst_x264_enc_class_init (GstX264EncClass * klass) supported_sinkcaps = gst_caps_new_simple ("video/x-raw", "framerate", GST_TYPE_FRACTION_RANGE, 0, 1, G_MAXINT, 1, - "width", GST_TYPE_INT_RANGE, 16, G_MAXINT, - "height", GST_TYPE_INT_RANGE, 16, G_MAXINT, NULL); + "width", GST_TYPE_INT_RANGE, 1, G_MAXINT, + "height", GST_TYPE_INT_RANGE, 1, G_MAXINT, NULL); gst_x264_enc_add_x264_chroma_format (gst_caps_get_structure (supported_sinkcaps, 0), TRUE, TRUE, TRUE, TRUE); |