Ignore:
Timestamp:
Apr 2, 2012 8:40:54 AM (10 years ago)
Author:
nanang
Message:

Misc (re #1446): Added macro PJMEDIA_MAX_VID_PAYLOAD_SIZE, also updated the default encoding MTU of ffmpeg codec & H263/H264 packetizers to this macro setting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-codec/ffmpeg_codecs.c

    r3998 r4006  
    933933    attr->enc_fmt.det.vid.max_bps = desc->max_bps; 
    934934 
    935     /* MTU */ 
    936     attr->enc_mtu = PJMEDIA_MAX_MTU; 
     935    /* Encoding MTU */ 
     936    attr->enc_mtu = PJMEDIA_MAX_VID_PAYLOAD_SIZE; 
    937937 
    938938    return PJ_SUCCESS; 
     
    12141214 
    12151215    pj_memcpy(&ff->param, attr, sizeof(*attr)); 
     1216 
     1217    /* Normalize encoding MTU in codec param */ 
     1218    if (attr->enc_mtu > PJMEDIA_MAX_VID_PAYLOAD_SIZE) 
     1219        attr->enc_mtu = PJMEDIA_MAX_VID_PAYLOAD_SIZE; 
    12161220 
    12171221    /* Open the codec */ 
Note: See TracChangeset for help on using the changeset viewer.