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:
Richard Mudgett
2015-07-27 19:10:11 -05:00
parent 7427c7f13b
commit 89b21fd9a3
2 changed files with 15 additions and 14 deletions

View File

@@ -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
/*!