- Timestamp:
- Apr 13, 2011 7:41:41 PM (14 years ago)
- Location:
- pjproject/branches/projects/2.0-dev/pjmedia
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/2.0-dev/pjmedia/include/pjmedia/config.h
r3500 r3534 516 516 517 517 /** 518 * Reserve some space for application extra data, e.g: SRTP auth tag, 519 * in RTP payload, so the total payload length will not exceed the MTU. 520 */ 521 #ifndef PJMEDIA_STREAM_RESV_PAYLOAD_LEN 522 # define PJMEDIA_STREAM_RESV_PAYLOAD_LEN 20 523 #endif 524 525 526 /** 518 527 * Specify the maximum duration of silence period in the codec, in msec. 519 528 * This is useful for example to keep NAT binding open in the firewall -
pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia/vid_stream.c
r3513 r3534 1188 1188 /* Init codec param */ 1189 1189 info->codec_param->dir = info->dir; 1190 info->codec_param->enc_mtu = PJMEDIA_MAX_MTU - sizeof(pjmedia_rtp_hdr); 1190 info->codec_param->enc_mtu = PJMEDIA_MAX_MTU - sizeof(pjmedia_rtp_hdr) - 1191 PJMEDIA_STREAM_RESV_PAYLOAD_LEN; 1191 1192 1192 1193 /* Init and open the codec. */
Note: See TracChangeset
for help on using the changeset viewer.