Changeset 2718
- Timestamp:
- May 20, 2009 2:26:42 PM (15 years ago)
- Location:
- pjproject/branches/projects/sipit24/pjmedia/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/sipit24/pjmedia/src/pjmedia-codec/ipp_codecs.c
r2709 r2718 234 234 { 235 235 # if PJMEDIA_HAS_INTEL_IPP_CODEC_AMR 236 /* AMR-NB SID seems to produce noise, so let's just disable its VAD. */ 236 237 {1, "AMR", PJMEDIA_RTP_PT_AMR, &USC_GSMAMR_Fxns, 8000, 1, 160, 237 238 7400, 12200, 2, 0, 1, 238 &predecode_amr, &parse_amr, &pack_amr 239 /*, {1, {{{"octet-align", 11}, {"1", 1}}} } */ 240 , {1, {{{"mode-set", 8}, {"1,4,5", 5}}} } 239 &predecode_amr, &parse_amr, &pack_amr, 240 {1, {{{"octet-align", 11}, {"1", 1}}} } 241 241 }, 242 242 # endif … … 245 245 {1, "AMR-WB", PJMEDIA_RTP_PT_AMRWB, &USC_AMRWB_Fxns, 16000, 1, 320, 246 246 15850, 23850, 1, 1, 1, 247 &predecode_amr, &parse_amr, &pack_amr 247 &predecode_amr, &parse_amr, &pack_amr, 248 {1, {{{"octet-align", 11}, {"1", 1}}} } 248 249 }, 249 250 # endif -
pjproject/branches/projects/sipit24/pjmedia/src/pjmedia/sdp_neg.c
r2643 r2718 866 866 { 867 867 /* Further check for G7221, negotiate bitrate. */ 868 if (pj_str cmp2(&or_.enc_name, "G7221") == 0) {868 if (pj_stricmp2(&or_.enc_name, "G7221") == 0) { 869 869 if (match_g7221(offer, i, answer, j)) 870 870 break; 871 871 } else 872 872 /* Further check for AMR, negotiate fmtp. */ 873 if (pj_strcmp2(&or_.enc_name, "AMR") == 0) { 873 if (pj_stricmp2(&or_.enc_name, "AMR") == 0 || 874 pj_stricmp2(&or_.enc_name, "AMR-WB") == 0) 875 { 874 876 if (match_amr(offer, i, answer, j, PJ_FALSE, 875 877 NULL)) … … 1071 1073 pjmedia_sdp_attr_get_rtpmap(a, &or_); 1072 1074 1073 if (!pj_str cmp2(&or_.enc_name, "telephone-event")) {1075 if (!pj_stricmp2(&or_.enc_name, "telephone-event")) { 1074 1076 master_has_telephone_event = 1; 1075 1077 if (found_matching_telephone_event) … … 1098 1100 if (!pj_stricmp(&or_.enc_name, &lr.enc_name) && 1099 1101 or_.clock_rate == lr.clock_rate && 1100 (pj_str cmp(&or_.param, &lr.param)==0 ||1102 (pj_stricmp(&or_.param, &lr.param)==0 || 1101 1103 (or_.param.slen==1 && *or_.param.ptr=='1'))) 1102 1104 { … … 1104 1106 if (is_codec) { 1105 1107 /* Further check for G7221, negotiate bitrate */ 1106 if (pj_str cmp2(&or_.enc_name, "G7221") == 0 &&1108 if (pj_stricmp2(&or_.enc_name, "G7221") == 0 && 1107 1109 !match_g7221(master, i, slave, j)) 1108 1110 { … … 1110 1112 } else 1111 1113 /* Further check for AMR, negotiate fmtp */ 1112 if (pj_strcmp2(&or_.enc_name, "AMR")==0) { 1114 if (pj_stricmp2(&or_.enc_name, "AMR")==0 || 1115 pj_stricmp2(&or_.enc_name, "AMR-WB")==0) 1116 { 1113 1117 unsigned o_med_idx, a_med_idx; 1114 1118
Note: See TracChangeset
for help on using the changeset viewer.