diff options
author | softworkz <softworkz@hotmail.com> | 2025-04-14 05:28:45 +0200 |
---|---|---|
committer | softworkz <softworkz@hotmail.com> | 2025-05-15 23:04:44 +0200 |
commit | 8f42d90413f64574b8e15de27fc2430102843dbf (patch) | |
tree | e2d9e695cf093b84bf257d467c2a63529888ee82 /fftools/textformat/tf_json.c | |
parent | f51c385a8e643ee12eb6be160e2fa4b5ae57a50b (diff) | |
download | ffmpeg-8f42d90413f64574b8e15de27fc2430102843dbf.tar.gz |
fftools/textformat: Apply formatting and whitespace changes
Reviewed-by: Stefano Sabatini <stefasab@gmail.com>
Signed-off-by: softworkz <softworkz@hotmail.com>
Diffstat (limited to 'fftools/textformat/tf_json.c')
-rw-r--r-- | fftools/textformat/tf_json.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fftools/textformat/tf_json.c b/fftools/textformat/tf_json.c index c26a912435..b61d3740c6 100644 --- a/fftools/textformat/tf_json.c +++ b/fftools/textformat/tf_json.c @@ -56,9 +56,9 @@ typedef struct JSONContext { #undef OFFSET #define OFFSET(x) offsetof(JSONContext, x) -static const AVOption json_options[]= { - { "compact", "enable compact output", OFFSET(compact), AV_OPT_TYPE_BOOL, {.i64=0}, 0, 1 }, - { "c", "enable compact output", OFFSET(compact), AV_OPT_TYPE_BOOL, {.i64=0}, 0, 1 }, +static const AVOption json_options[] = { + { "compact", "enable compact output", OFFSET(compact), AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1 }, + { "c", "enable compact output", OFFSET(compact), AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1 }, { NULL } }; @@ -76,8 +76,8 @@ static av_cold int json_init(AVTextFormatContext *wctx) static const char *json_escape_str(AVBPrint *dst, const char *src, void *log_ctx) { - static const char json_escape[] = {'"', '\\', '\b', '\f', '\n', '\r', '\t', 0}; - static const char json_subst[] = {'"', '\\', 'b', 'f', 'n', 'r', 't', 0}; + static const char json_escape[] = { '"', '\\', '\b', '\f', '\n', '\r', '\t', 0 }; + static const char json_subst[] = { '"', '\\', 'b', 'f', 'n', 'r', 't', 0 }; const char *p; for (p = src; *p; p++) { |