Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/GStreamer/gst-plugins-good.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.com>2021-05-28 16:54:12 +0300
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2021-06-02 20:28:18 +0300
commitbe83a52db953850ffccbb3868dd660e2aa129e5f (patch)
tree99529a4afc9c793e918f4f081682fe8e5994b199 /ext
parent21c90afd9242ab14d880bd9cfdf82caf89924351 (diff)
jpegenc: Remove arbitrary encoding size limitation
The encoder is happy to encode with sizes less then 16x16, so remove this arbitrary limitation. This also fixes the fact the sink and src template caps disagree. Fixes #888 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/998>
Diffstat (limited to 'ext')
-rw-r--r--ext/jpeg/gstjpegenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/jpeg/gstjpegenc.c b/ext/jpeg/gstjpegenc.c
index 323d7953a..8a4c43b48 100644
--- a/ext/jpeg/gstjpegenc.c
+++ b/ext/jpeg/gstjpegenc.c
@@ -113,8 +113,8 @@ GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC,
GST_PAD_ALWAYS,
GST_STATIC_CAPS ("image/jpeg, "
- "width = (int) [ 16, 65535 ], "
- "height = (int) [ 16, 65535 ], "
+ "width = (int) [ 1, 65535 ], "
+ "height = (int) [ 1, 65535 ], "
"framerate = (fraction) [ 0/1, MAX ], "
"sof-marker = (int) { 0, 1, 2, 4, 9 }")
);