From 29aec57ef61a52c6a70c94e60aef7048529a2f6d Mon Sep 17 00:00:00 2001
From: Filip Hanes <filip@hanes.tech>
Date: Thu, 8 Sep 2022 17:06:26 +0000
Subject: [PATCH] pngenc: lower minimum width and height to 1x1

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3003>
---
 subprojects/gst-plugins-good/docs/gst_plugins_cache.json | 2 +-
 subprojects/gst-plugins-good/ext/libpng/gstpngenc.c      | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/subprojects/gst-plugins-good/docs/gst_plugins_cache.json b/subprojects/gst-plugins-good/docs/gst_plugins_cache.json
index cead12b958..80b8db2c76 100644
--- a/subprojects/gst-plugins-good/docs/gst_plugins_cache.json
+++ b/subprojects/gst-plugins-good/docs/gst_plugins_cache.json
@@ -11432,7 +11432,7 @@
                         "presence": "always"
                     },
                     "src": {
-                        "caps": "image/png:\n          width: [ 16, 1000000 ]\n         height: [ 16, 1000000 ]\n      framerate: [ 0/1, 2147483647/1 ]\n",
+                        "caps": "image/png:\n          width: [ 1, 1000000 ]\n         height: [ 1, 1000000 ]\n      framerate: [ 0/1, 2147483647/1 ]\n",
                         "direction": "src",
                         "presence": "always"
                     }
diff --git a/subprojects/gst-plugins-good/ext/libpng/gstpngenc.c b/subprojects/gst-plugins-good/ext/libpng/gstpngenc.c
index 25f3714382..f807e4c9cd 100644
--- a/subprojects/gst-plugins-good/ext/libpng/gstpngenc.c
+++ b/subprojects/gst-plugins-good/ext/libpng/gstpngenc.c
@@ -61,8 +61,8 @@ GST_STATIC_PAD_TEMPLATE ("src",
     GST_PAD_SRC,
     GST_PAD_ALWAYS,
     GST_STATIC_CAPS ("image/png, "
-        "width = (int) [ 16, 1000000 ], "
-        "height = (int) [ 16, 1000000 ], " "framerate = " GST_VIDEO_FPS_RANGE)
+        "width = (int) [ 1, 1000000 ], "
+        "height = (int) [ 1, 1000000 ], " "framerate = " GST_VIDEO_FPS_RANGE)
     );
 
 static GstStaticPadTemplate pngenc_sink_template =