diff options
author | cvzi <cuzi@openmail.cc> | 2023-07-08 01:51:21 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2023-07-08 11:36:15 +0200 |
commit | f5eb7ea1a9a655ba2e1775341554bf239cfe65a8 (patch) | |
tree | a44c415c76ed625c8d9174932f98b0d81790bbc7 /misc/json.h | |
parent | 2e7fcc5a2a04c53c740a66487a39d17eae854f41 (diff) | |
download | mpv-f5eb7ea1a9a655ba2e1775341554bf239cfe65a8.tar.bz2 mpv-f5eb7ea1a9a655ba2e1775341554bf239cfe65a8.tar.xz |
json: unify json_parse depth to MAX_JSON_DEPTH=50
Diffstat (limited to 'misc/json.h')
-rw-r--r-- | misc/json.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/misc/json.h b/misc/json.h index 43d565b275..b99fc36c41 100644 --- a/misc/json.h +++ b/misc/json.h @@ -21,6 +21,8 @@ // We reuse mpv_node. #include "libmpv/client.h" +#define MAX_JSON_DEPTH 50 + int json_parse(void *ta_parent, struct mpv_node *dst, char **src, int max_depth); void json_skip_whitespace(char **src); int json_write(char **s, struct mpv_node *src); |