Ignore:
Timestamp:
Apr 13, 2011 7:41:41 PM (11 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.