diff options
author | Niklas Haas <git@haasn.dev> | 2023-09-15 12:17:40 +0200 |
---|---|---|
committer | Niklas Haas <github-daiK1o@haasn.dev> | 2023-09-16 14:33:45 +0200 |
commit | 87162f0722dfcf6f71276e1ccadb81d7b58f721b (patch) | |
tree | 621d4354e28795464c04e86458cf8da8650474ae /video/out/gpu/video.c | |
parent | 818ef158e801e9d34c1c2be7870446acc5ff6f4e (diff) | |
download | mpv-87162f0722dfcf6f71276e1ccadb81d7b58f721b.tar.bz2 mpv-87162f0722dfcf6f71276e1ccadb81d7b58f721b.tar.xz |
vo_gpu: slight bump to hard-coded option size limits
ewa_lanczos4sharpest, for example, overflows this buffer.
Diffstat (limited to 'video/out/gpu/video.c')
-rw-r--r-- | video/out/gpu/video.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/video/out/gpu/video.c b/video/out/gpu/video.c index e9f658426f..e9e05ed824 100644 --- a/video/out/gpu/video.c +++ b/video/out/gpu/video.c @@ -4170,7 +4170,7 @@ static int validate_scaler_opt(struct mp_log *log, const m_option_t *opt, struct bstr name, const char **value) { struct bstr param = bstr0(*value); - char s[20] = {0}; + char s[32] = {0}; int r = 1; bool tscale = bstr_equals0(name, "tscale"); if (bstr_equals0(param, "help")) { @@ -4211,7 +4211,7 @@ static int validate_window_opt(struct mp_log *log, const m_option_t *opt, struct bstr name, const char **value) { struct bstr param = bstr0(*value); - char s[20] = {0}; + char s[32] = {0}; int r = 1; if (bstr_equals0(param, "help")) { r = M_OPT_EXIT; @@ -4237,7 +4237,7 @@ static int validate_error_diffusion_opt(struct mp_log *log, const m_option_t *op struct bstr name, const char **value) { struct bstr param = bstr0(*value); - char s[20] = {0}; + char s[32] = {0}; int r = 1; if (bstr_equals0(param, "help")) { r = M_OPT_EXIT; |