mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-19 16:20:37 +00:00
Merge "rtp: Don't negotiate dynamic codecs using payload."
This commit is contained in:
@@ -1287,7 +1287,7 @@ void ast_rtp_codecs_payloads_set_m_type(struct ast_rtp_codecs *codecs, struct as
|
|||||||
{
|
{
|
||||||
struct ast_rtp_payload_type *new_type;
|
struct ast_rtp_payload_type *new_type;
|
||||||
|
|
||||||
if (payload < 0 || payload >= AST_RTP_MAX_PT) {
|
if (payload < 0 || payload >= AST_RTP_MAX_PT || payload > AST_RTP_PT_LAST_STATIC) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user