summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorllyyr <llyyr.public@gmail.com>2023-09-21 20:42:39 +0530
committerNiklas Haas <github-daiK1o@haasn.dev>2023-09-21 19:22:03 +0200
commitd48f71339ec3fa3c87e65b7b2adc2dd930d08bf9 (patch)
tree3fc507822663c8b5e48330107cfd5d6ef1e304bc /video
parentbe89e072293baa80bfa55184cf37a2d9406d66b3 (diff)
downloadmpv-d48f71339ec3fa3c87e65b7b2adc2dd930d08bf9.tar.bz2
mpv-d48f71339ec3fa3c87e65b7b2adc2dd930d08bf9.tar.xz
vo_gpu: allow deband-iterations to be 0
THis allows adding grain without debanding. libplacebo already supported this, so no changes are required there.
Diffstat (limited to 'video')
-rw-r--r--video/out/gpu/video_shaders.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/gpu/video_shaders.c b/video/out/gpu/video_shaders.c
index 1a6aa28f3e..3a33d3cfc8 100644
--- a/video/out/gpu/video_shaders.c
+++ b/video/out/gpu/video_shaders.c
@@ -950,7 +950,7 @@ const struct deband_opts deband_opts_def = {
#define OPT_BASE_STRUCT struct deband_opts
const struct m_sub_options deband_conf = {
.opts = (const m_option_t[]) {
- {"iterations", OPT_INT(iterations), M_RANGE(1, 16)},
+ {"iterations", OPT_INT(iterations), M_RANGE(0, 16)},
{"threshold", OPT_FLOAT(threshold), M_RANGE(0.0, 4096.0)},
{"range", OPT_FLOAT(range), M_RANGE(1.0, 64.0)},
{"grain", OPT_FLOAT(grain), M_RANGE(0.0, 4096.0)},