Changeset 3534 for pjproject


Ignore:
Timestamp:
Apr 13, 2011 7:41:41 PM (14 years ago)
Author:
nanang
Message:

Re #1182: Added macro setting PJMEDIA_STREAM_RESV_PAYLOAD_LEN to let stream reserve some space for application extra data in the RTP payload, e.g: SRTP auth tag.

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  
    516516 
    517517/** 
     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/** 
    518527 * Specify the maximum duration of silence period in the codec, in msec.  
    519528 * 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  
    11881188    /* Init codec param */ 
    11891189    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; 
    11911192 
    11921193    /* Init and open the codec. */ 
Note: See TracChangeset for help on using the changeset viewer.