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