Changeset 3869 for pjproject/trunk
- Timestamp:
- Oct 27, 2011 3:33:31 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/sdp_neg.c
r3856 r3869 1738 1738 1739 1739 /* Match format in the SDP media offer and answer. */ 1740 PJ_DEF(pj_ bool_t) pjmedia_sdp_neg_fmt_match(pj_pool_t *pool,1741 pjmedia_sdp_media *offer,1742 unsigned o_fmt_idx,1743 pjmedia_sdp_media *answer,1744 unsigned a_fmt_idx,1745 unsigned option)1740 PJ_DEF(pj_status_t) pjmedia_sdp_neg_fmt_match(pj_pool_t *pool, 1741 pjmedia_sdp_media *offer, 1742 unsigned o_fmt_idx, 1743 pjmedia_sdp_media *answer, 1744 unsigned a_fmt_idx, 1745 unsigned option) 1746 1746 { 1747 1747 const pjmedia_sdp_attr *attr; 1748 1748 pjmedia_sdp_rtpmap o_rtpmap, a_rtpmap; 1749 unsigned o_pt; 1750 unsigned a_pt; 1751 1752 o_pt = pj_strtoul(&offer->desc.fmt[o_fmt_idx]); 1753 a_pt = pj_strtoul(&answer->desc.fmt[a_fmt_idx]); 1754 1755 if (o_pt < 96 || a_pt < 96) { 1756 if (o_pt == a_pt) 1757 return PJ_SUCCESS; 1758 else 1759 return PJMEDIA_SDP_EFORMATNOTEQUAL; 1760 } 1749 1761 1750 1762 /* Get the format rtpmap from the offer. */
Note: See TracChangeset
for help on using the changeset viewer.