mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-08 22:27:07 +00:00
rtp_engine.h: No sense allowing payload types larger than RFC allows.
* Tweaked add_static_payload() to not use magic numbers. Change-Id: I1719ff0f6d3ce537a91572501eae5bcd912a420b
This commit is contained in:
@@ -78,14 +78,13 @@ extern "C" {
|
||||
#include "asterisk/stasis.h"
|
||||
#include "asterisk/vector.h"
|
||||
|
||||
/* Maximum number of payloads supported */
|
||||
#if defined(LOW_MEMORY)
|
||||
/*! Maximum number of payload types RTP can support. */
|
||||
#define AST_RTP_MAX_PT 128
|
||||
#else
|
||||
#define AST_RTP_MAX_PT 196
|
||||
#endif
|
||||
|
||||
/* Maximum number of generations */
|
||||
/*! First dynamic RTP payload type */
|
||||
#define AST_RTP_PT_FIRST_DYNAMIC 96
|
||||
|
||||
/*! Maximum number of generations */
|
||||
#define AST_RED_MAX_GENERATION 5
|
||||
|
||||
/*!
|
||||
|
Reference in New Issue
Block a user