From ec765ec9ee01f54a9d072f269a2df3bb372cc325 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Mon, 28 Jan 2019 12:31:40 +0100 Subject: [PATCH] rtp: add option to configure initial rate --- lib/nodes/rtp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/nodes/rtp.c b/lib/nodes/rtp.c index 747a4f240..3ba39d49b 100644 --- a/lib/nodes/rtp.c +++ b/lib/nodes/rtp.c @@ -163,9 +163,10 @@ int rtp_parse(struct node *n, json_t *cfg) /* AIMD */ if (json_aimd) { - ret = json_unpack_ex(json_rtcp, &err, 0, "{ s?: F, s?: F }", + ret = json_unpack_ex(json_rtcp, &err, 0, "{ s?: F, s?: F, s?: F }", "a", &r->aimd.a, - "b", &r->aimd.b + "b", &r->aimd.b, + "start_rate", &r->aimd.last_rate ); if (ret) jerror(&err, "Failed to parse configuration of node %s", node_name(n));