From ca533ac8e085af58973ffa93bef0aa32a067fd40 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Wed, 23 Feb 2022 15:57:22 +0100 Subject: [PATCH] raw: fix parsing of options --- etc/examples/nodes/rtp.conf | 2 +- lib/formats/raw.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/examples/nodes/rtp.conf b/etc/examples/nodes/rtp.conf index 43a5086b8..99fcd27bf 100644 --- a/etc/examples/nodes/rtp.conf +++ b/etc/examples/nodes/rtp.conf @@ -4,7 +4,7 @@ nodes = { format = { type = "raw" - bits = "32" + bits = 32 endianess = "big" } diff --git a/lib/formats/raw.cpp b/lib/formats/raw.cpp index aaf1da5bf..0b5f83857 100644 --- a/lib/formats/raw.cpp +++ b/lib/formats/raw.cpp @@ -416,7 +416,7 @@ void RawFormat::parse(json_t *json) int fake_tmp = 0; const char *end = nullptr; - ret = json_unpack_ex(json, &err, 0, "{ }", + ret = json_unpack_ex(json, &err, 0, "{ s?: s, s?: b, s?: i }", "endianess", &end, "fake", &fake_tmp, "bits", &bits