Skip to content

Commit 9c00f30

Browse files
committed
MT#55283 don't accept incompatible codecs
A matching payload type number in an answer might not be enough to establish compatible codecs. Also check the format parameters. Reject and ignore answer codecs that are not compatible. Change-Id: I12a1287216886926ec4b3c704029c923f815b429
1 parent 68ad1dc commit 9c00f30

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

daemon/codec.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5206,6 +5206,8 @@ void __codec_store_populate(struct codec_store *dst, struct codec_store *src, st
52065206
rtp_payload_type *pt = l->data;
52075207
rtp_payload_type *orig_pt = t_hash_table_lookup(orig_dst.codecs,
52085208
GINT_TO_POINTER(pt->payload_type));
5209+
if (orig_pt && !rtp_payload_type_eq_compat(orig_pt, pt))
5210+
orig_pt = NULL;
52095211
if (a.answer_only && !orig_pt) {
52105212
if (a.allow_asymmetric)
52115213
orig_pt = codec_store_find_compatible(&orig_dst, pt);

0 commit comments

Comments
 (0)