Changeset 2265
- Timestamp:
- Sep 8, 2008 3:21:56 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/stream.c
r2244 r2265 1378 1378 pjmedia_channel *channel; 1379 1379 pj_status_t status; 1380 unsigned min_out_pkt_size; 1380 1381 1381 1382 /* Allocate memory for channel descriptor */ … … 1407 1408 if (channel->out_pkt_size > PJMEDIA_MAX_MTU) 1408 1409 channel->out_pkt_size = PJMEDIA_MAX_MTU; 1410 1411 /* It should big enough to hold (minimally) RTCP SR with an SDES. */ 1412 min_out_pkt_size = sizeof(pjmedia_rtcp_sr_pkt) + 1413 sizeof(pjmedia_rtcp_common) + 1414 (4 + stream->cname.slen) + 1415 32; 1416 1417 if (channel->out_pkt_size < min_out_pkt_size) 1418 channel->out_pkt_size = min_out_pkt_size; 1409 1419 1410 1420 channel->out_pkt = pj_pool_alloc(pool, channel->out_pkt_size);
Note: See TracChangeset
for help on using the changeset viewer.