Changeset 3841 for pjproject/trunk/pjmedia/src/pjmedia-codec/ipp_codecs.c
- Timestamp:
- Oct 24, 2011 9:28:13 AM (13 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk
- Property svn:mergeinfo changed
-
pjproject/trunk/pjmedia/src/pjmedia-codec/ipp_codecs.c
r3664 r3841 42 42 43 43 #define THIS_FILE "ipp_codecs.c" 44 44 45 45 46 /* Prototypes for IPP codecs factory */ … … 239 240 { 240 241 # if PJMEDIA_HAS_INTEL_IPP_CODEC_AMR 241 /* AMR-NB SID seems to produce noise, so let's just disable its VAD. */242 242 {1, "AMR", PJMEDIA_RTP_PT_AMR, &USC_GSMAMR_Fxns, 8000, 1, 160, 243 7400, 12200, 2, 0, 1,243 7400, 12200, 2, 1, 1, 244 244 &predecode_amr, &parse_amr, &pack_amr, 245 245 {1, {{{"octet-align", 11}, {"1", 1}}} } … … 489 489 /* SID */ 490 490 if (info->good_quality) { 491 pj_bool_t STI; 492 STI = (((pj_uint8_t*)frame.buf)[35 >> 3] & 0x10) != 0; 493 usc_frame->frametype = STI? 2 : 1; 491 usc_frame->frametype = info->STI? 2 : 1; 494 492 } else { 495 493 usc_frame->frametype = setting->amr_nb ? 6 : 7; … … 535 533 info->good_quality = (pj_uint8_t)((info_ & 0x80) == 0); 536 534 info->mode = (pj_int8_t) ((info_ >> 8) & 0x0F); 535 info->STI = (pj_uint8_t)((info_ >> 5) & 1); 537 536 538 537 frames[nframes].buf = r + 2; … … 1420 1419 /* Two octets for AMR frame info, 0=LSB: 1421 1420 * bit 0-3 : frame type 1421 * bit 5 : STI flag 1422 1422 * bit 6 : last frame flag 1423 1423 * bit 7 : quality flag … … 1443 1443 if (out.frametype == 6 || out.frametype == 7) 1444 1444 *info |= 0x80; 1445 /* STI */ 1446 if (out.frametype != 1) 1447 *info |= 0x20; 1445 1448 } else { 1446 1449 /* Untransmited */
Note: See TracChangeset
for help on using the changeset viewer.