Ignore:
Timestamp:
Apr 6, 2011 1:55:01 PM (11 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/pjsip/src/pjsua-lib/pjsua_media.c

    r3487 r3500  
    37583758 
    37593759    for (i=0; i<count; ++i) { 
     3760        pj_bzero(&id[i], sizeof(pjsua_codec_info)); 
     3761 
    37603762        pjmedia_codec_info_to_id(&info[i], id[i].buf_, sizeof(id[i].buf_)); 
    37613763        id[i].codec_id = pj_str(id[i].buf_); 
     
    38753877    for (i=0, j=0; i<count && j<*p_count; ++i) { 
    38763878        if (info[i].has_rtp_pack) { 
     3879            pj_bzero(&id[j], sizeof(pjsua_codec_info)); 
     3880 
    38773881            pjmedia_vid_codec_info_to_id(&info[i], id[j].buf_, sizeof(id[j].buf_)); 
    38783882            id[j].codec_id = pj_str(id[j].buf_); 
    38793883            id[j].priority = (pj_uint8_t) prio[i]; 
     3884             
     3885            if (id[j].codec_id.slen < sizeof(id[j].buf_)) { 
     3886                id[j].desc.ptr = id[j].codec_id.ptr + id[j].codec_id.slen + 1; 
     3887                pj_strncpy(&id[j].desc, &info[i].encoding_desc, 
     3888                           sizeof(id[j].buf_) - id[j].codec_id.slen - 1); 
     3889            } 
     3890 
    38803891            ++j; 
    38813892        } 
Note: See TracChangeset for help on using the changeset viewer.