Changeset 5122 for pjproject/trunk
- Timestamp:
- Jul 1, 2015 1:45:57 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia-codec/opencore_amr.c
r5045 r5122 243 243 244 244 /* Register format match callback. */ 245 pj_cstr(&codec_name, "AMR"); 246 status = pjmedia_sdp_neg_register_fmt_match_cb( 247 &codec_name, 248 &pjmedia_codec_amr_match_sdp); 249 if (status != PJ_SUCCESS) 250 goto on_error; 245 #ifdef USE_AMRNB 246 if ((options & PJMEDIA_AMR_NO_NB) == 0) { 247 pj_cstr(&codec_name, "AMR"); 248 status = pjmedia_sdp_neg_register_fmt_match_cb( 249 &codec_name, 250 &pjmedia_codec_amr_match_sdp); 251 if (status != PJ_SUCCESS) 252 goto on_error; 253 } 254 #endif 255 #ifdef USE_AMRWB 256 if ((options & PJMEDIA_AMR_NO_WB) == 0) { 257 pj_cstr(&codec_name, "AMR-WB"); 258 status = pjmedia_sdp_neg_register_fmt_match_cb( 259 &codec_name, 260 &pjmedia_codec_amr_match_sdp); 261 if (status != PJ_SUCCESS) 262 goto on_error; 263 } 264 #endif 251 265 252 266 /* Register codec factory to endpoint. */
Note: See TracChangeset
for help on using the changeset viewer.