Changeset 411 for pjproject/trunk/pjmedia/src/pjmedia/jbuf.c
- Timestamp:
- Apr 27, 2006 10:36:40 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/jbuf.c
r408 r411 323 323 static void jbuf_calculate_jitter(pjmedia_jbuf *jb) 324 324 { 325 enum { STABLE_HISTORY_LIMIT = ( 500/20) };325 enum { STABLE_HISTORY_LIMIT = (100*2) }; 326 326 327 327 jb->jb_last_jitter = PJ_ABS(jb->jb_level-jb->jb_last_level); … … 342 342 jb->jb_max_hist_jitter = 0; 343 343 344 if (jb->jb_op_count >= 100&&344 if (jb->jb_op_count >= STABLE_HISTORY_LIMIT*2 && 345 345 (int)jb_framelist_size(&jb->jb_framelist) > jb->jb_prefetch+2) 346 346 { … … 361 361 jb->jb_max_hist_jitter = 0; 362 362 363 if (jb->jb_op_count >= 100) {363 if (jb->jb_op_count >= STABLE_HISTORY_LIMIT * 2) { 364 364 if ((int)jb_framelist_size(&jb->jb_framelist) > jb->jb_prefetch+2) 365 365 {
Note: See TracChangeset
for help on using the changeset viewer.