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 /input | |
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 'input')
-rw-r--r-- | input/ipc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/input/ipc.c b/input/ipc.c index baf68aaf48..ea69fb7c24 100644 --- a/input/ipc.c +++ b/input/ipc.c @@ -126,7 +126,7 @@ static char *json_execute_command(struct mpv_handle *client, void *ta_parent, bool async = false; bool send_reply = true; - rc = json_parse(ta_parent, &msg_node, &src, 50); + rc = json_parse(ta_parent, &msg_node, &src, MAX_JSON_DEPTH); if (rc < 0) { mp_err(log, "malformed JSON received: '%s'\n", src); rc = MPV_ERROR_INVALID_PARAMETER; |