Changeset 4443 for pjproject/trunk/pjmedia/src/pjmedia/conf_switch.c
- Timestamp:
- Mar 20, 2013 6:56:19 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/conf_switch.c
r4122 r4443 51 51 #define SLOT_TYPE unsigned 52 52 #define INVALID_SLOT ((SLOT_TYPE)-1) 53 #define BUFFER_SIZE PJMEDIA_ MAX_MTU53 #define BUFFER_SIZE PJMEDIA_CONF_SWITCH_BOARD_BUF_SIZE 54 54 #define MAX_LEVEL (32767) 55 55 #define MIN_LEVEL (-32768) … … 144 144 145 145 PJ_ASSERT_RETURN(pool && conf && port && name && p_conf_port, PJ_EINVAL); 146 147 /* Check port's buffer size */ 148 if (port->info.fmt.id == PJMEDIA_FORMAT_PCM && 149 PJMEDIA_PIA_SPF(&port->info)*2 > BUFFER_SIZE - sizeof(pjmedia_frame)) 150 { 151 pj_assert(!"Too small buffer size for audio switchboard. " 152 "Try increase PJMEDIA_CONF_SWITCH_BOARD_BUF_SIZE"); 153 return PJ_ETOOSMALL; 154 } 146 155 147 156 /* Create port. */
Note: See TracChangeset
for help on using the changeset viewer.