Skip to content

Commit

Permalink
MT#55283 don't accept incompatible codecs
Browse files Browse the repository at this point in the history
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
(cherry picked from commit 9c00f30)
(cherry picked from commit 71ff921)
(cherry picked from commit 76bfb0e)
  • Loading branch information
rfuchs committed Jan 20, 2025
1 parent 22b142d commit c6177cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions daemon/codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -5206,6 +5206,8 @@ void __codec_store_populate(struct codec_store *dst, struct codec_store *src, st
rtp_payload_type *pt = l->data;
rtp_payload_type *orig_pt = t_hash_table_lookup(orig_dst.codecs,
GINT_TO_POINTER(pt->payload_type));
if (orig_pt && !rtp_payload_type_eq_compat(orig_pt, pt))
orig_pt = NULL;
if (a.answer_only && !orig_pt) {
if (a.allow_asymmetric)
orig_pt = codec_store_find_compatible(&orig_dst, pt);
Expand Down

0 comments on commit c6177cc

Please sign in to comment.