From c2b93e74b76bc9b697c1c04c558ad98060e2647a Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Mon, 9 Aug 2021 09:33:16 -0400 Subject: [PATCH] TT#89352 ignore format of codecs we don't know Change-Id: I0731c6c4697f322a9cdea8d2adade50cde9fe446 --- lib/rtplib.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/rtplib.c b/lib/rtplib.c index 4c90b4ae9..083c8331f 100644 --- a/lib/rtplib.c +++ b/lib/rtplib.c @@ -149,6 +149,8 @@ int rtp_payload_type_cmp(const struct rtp_payload_type *a, const struct rtp_payl if (a->codec_def->format_cmp) return a->codec_def->format_cmp(a, b); } + if (!a->codec_def) // ignore format of codecs we don't know + return 0; if (str_cmp_str(&a->format_parameters, &b->format_parameters)) return 1; return 0;