Ignore:
Timestamp:
Jun 22, 2015 7:33:46 AM (9 years ago)
Author:
ming
Message:

Fixed #1860: Modify pjmedia_sdp_neg_fmt_match() to check for encoding parameters as well

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/sdp_neg.c

    r5045 r5114  
    16001600 
    16011601    if (pj_stricmp(&o_rtpmap.enc_name, &a_rtpmap.enc_name) != 0 || 
    1602         o_rtpmap.clock_rate != a_rtpmap.clock_rate) 
     1602        (o_rtpmap.clock_rate != a_rtpmap.clock_rate) || 
     1603        (!(pj_stricmp(&o_rtpmap.param, &a_rtpmap.param) == 0 || 
     1604           (a_rtpmap.param.slen == 0 && o_rtpmap.param.slen == 1 && 
     1605            *o_rtpmap.param.ptr == '1') || 
     1606           (o_rtpmap.param.slen == 0 && a_rtpmap.param.slen == 1 && 
     1607            *a_rtpmap.param.ptr=='1')))) 
    16031608    { 
    16041609        return PJMEDIA_SDP_EFORMATNOTEQUAL; 
Note: See TracChangeset for help on using the changeset viewer.