From 1b5ff6e306d04f925f419ae9a17f518662361720 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Mon, 10 Jan 2022 10:31:01 -0500 Subject: [PATCH] TT#14008 handle zero clock rate payload types Specially handle zero clock rate when synthesising payload types as a zero clock rate would have its default clock rate inserted, subsequently messing up the clock rate tracking. Change-Id: I8335377da5c5734d28d231c20302df2d74a15e9b --- daemon/codec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daemon/codec.c b/daemon/codec.c index ec7970614..0dc101fd5 100644 --- a/daemon/codec.c +++ b/daemon/codec.c @@ -2135,6 +2135,8 @@ static int __codec_synth_transcode_options(struct rtp_payload_type *pt, struct s struct rtp_payload_type *pt_r = k->data; if (g_hash_table_lookup(clockrates, GUINT_TO_POINTER(pt_r->clock_rate))) continue; + if (pt_r->clock_rate == 0) + continue; char *pt_s; if (asprintf(&pt_s, STR_FORMAT "/%u", STR_FMT(&pt->encoding), pt_r->clock_rate) < 0) continue;