Ignore:
Timestamp:
Apr 6, 2011 1:55:01 PM (13 years ago)
Author:
nanang
Message:

Re #1186:

  • Added custom negotiation callback mechanism in SDP negotiator, mainly for specific formats that require SDP fmtp negotiation.
  • Modified video codec ID string to use encoding name+payload type (was encoding name+clock rate), also added encoding description in video codec info, so duplicated codecs (e.g: multiple H264 configurations) can be differentiated.
  • Few enhancements for H264 in ffmpeg wrapper (e.g: added proper profile-id & packetization-mode setup).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia/vid_codec.c

    r3425 r3500  
    307307 
    308308/* 
    309  * Get codec info for static payload type. 
     309 * Get codec info for the specified payload type. 
    310310 */ 
    311311PJ_DEF(pj_status_t) pjmedia_vid_codec_mgr_get_codec_info( 
     
    316316    unsigned i; 
    317317 
    318     PJ_ASSERT_RETURN(p_info && pt>=0 && pt < 96, PJ_EINVAL); 
     318    PJ_ASSERT_RETURN(p_info, PJ_EINVAL); 
    319319 
    320320    if (!mgr) mgr = def_vid_codec_mgr; 
     
    369369/* 
    370370 * Convert codec info struct into a unique codec identifier. 
    371  * A codec identifier looks something like "L16/44100/2". 
     371 * A codec identifier looks something like "H263/34". 
    372372 */ 
    373373PJ_DEF(char*) pjmedia_vid_codec_info_to_id( 
     
    382382                           (int)info->encoding_name.slen, 
    383383                           info->encoding_name.ptr, 
    384                            info->clock_rate); 
     384                           info->pt); 
    385385 
    386386    if (len < 1 || len >= (int)max_len) { 
Note: See TracChangeset for help on using the changeset viewer.