From 902566075bd05fc997dd16dabfc3768563116405 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Fri, 4 Jun 2021 09:31:32 -0400 Subject: [PATCH] TT#14008 skip duplicate comparison of basic codec params closes #1276 Change-Id: I82467a0f5ff502e1410bd1ed135b085a10eaca61 (cherry picked from commit 46a3f7a3ac997c86ce65329f14045c278804f722) --- lib/rtplib.c | 2 +- t/auto-daemon-tests.pl | 109 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 110 insertions(+), 1 deletion(-) diff --git a/lib/rtplib.c b/lib/rtplib.c index cabccd5f2..4c90b4ae9 100644 --- a/lib/rtplib.c +++ b/lib/rtplib.c @@ -161,7 +161,7 @@ int rtp_payload_type_cmp_nf(const struct rtp_payload_type *a, const struct rtp_p return 1; if (a->channels != b->channels) return 1; - if (str_casecmp_str(&a->encoding_with_params, &b->encoding_with_params)) + if (str_casecmp_str(&a->encoding, &b->encoding)) return 1; return 0; } diff --git a/t/auto-daemon-tests.pl b/t/auto-daemon-tests.pl index daa54b11a..be9ac9e60 100755 --- a/t/auto-daemon-tests.pl +++ b/t/auto-daemon-tests.pl @@ -40,6 +40,58 @@ my ($sock_a, $sock_b, $sock_c, $sock_d, $port_a, $port_b, $ssrc, $ssrc_b, $resp, +new_call; + +offer('t/c and implicit number of channels', + { codec => { transcode => ['opus','PCMA'] } }, < { transcode => ['AMR','PCMA'] } }, <