Changeset 1984
- Timestamp:
- Jun 6, 2008 11:13:36 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/rtcp_xr.c
r1961 r1984 352 352 r->end_sys_delay = pj_htons(sess->stat.rx.voip_mtc.end_sys_delay); 353 353 /* signal & noise level encoded in two's complement form */ 354 r->signal_lvl = (sess->stat.rx.voip_mtc.signal_lvl >= 0)? 355 sess->stat.rx.voip_mtc.signal_lvl : 356 (sess->stat.rx.voip_mtc.signal_lvl + 256); 357 r->noise_lvl = (sess->stat.rx.voip_mtc.noise_lvl >= 0)? 358 sess->stat.rx.voip_mtc.noise_lvl : 359 (sess->stat.rx.voip_mtc.noise_lvl + 256); 354 r->signal_lvl = (pj_uint8_t) 355 ((sess->stat.rx.voip_mtc.signal_lvl >= 0)? 356 sess->stat.rx.voip_mtc.signal_lvl : 357 (sess->stat.rx.voip_mtc.signal_lvl + 256)); 358 r->noise_lvl = (pj_uint8_t) 359 ((sess->stat.rx.voip_mtc.noise_lvl >= 0)? 360 sess->stat.rx.voip_mtc.noise_lvl : 361 (sess->stat.rx.voip_mtc.noise_lvl + 256)); 360 362 r->rerl = sess->stat.rx.voip_mtc.rerl; 361 363 r->gmin = sess->stat.rx.voip_mtc.gmin; … … 578 580 pj_ntohs(rb_voip_mtc->end_sys_delay); 579 581 /* signal & noise level encoded in two's complement form */ 580 sess->stat.tx.voip_mtc.signal_lvl = (rb_voip_mtc->signal_lvl > 127)? 581 (rb_voip_mtc->signal_lvl - 256) : rb_voip_mtc->signal_lvl; 582 sess->stat.tx.voip_mtc.noise_lvl = (rb_voip_mtc->noise_lvl > 127)? 583 (rb_voip_mtc->noise_lvl - 256) : rb_voip_mtc->noise_lvl; 582 sess->stat.tx.voip_mtc.signal_lvl = (pj_int8_t) 583 ((rb_voip_mtc->signal_lvl > 127)? 584 ((int)rb_voip_mtc->signal_lvl - 256) : 585 rb_voip_mtc->signal_lvl); 586 sess->stat.tx.voip_mtc.noise_lvl = (pj_int8_t) 587 ((rb_voip_mtc->noise_lvl > 127)? 588 ((int)rb_voip_mtc->noise_lvl - 256) : 589 rb_voip_mtc->noise_lvl); 584 590 sess->stat.tx.voip_mtc.rerl = rb_voip_mtc->rerl; 585 591 sess->stat.tx.voip_mtc.gmin = rb_voip_mtc->gmin;
Note: See TracChangeset
for help on using the changeset viewer.