Ignore:
Timestamp:
Apr 27, 2006 10:36:40 PM (19 years ago)
Author:
bennylp
Message:

Initial support for stereo codecs, and added L16 codecs. Also better handling for case remote media is restarted

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/jbuf.c

    r408 r411  
    323323static void jbuf_calculate_jitter(pjmedia_jbuf *jb) 
    324324{ 
    325     enum { STABLE_HISTORY_LIMIT = (500/20) }; 
     325    enum { STABLE_HISTORY_LIMIT = (100*2) }; 
    326326 
    327327    jb->jb_last_jitter = PJ_ABS(jb->jb_level-jb->jb_last_level); 
     
    342342            jb->jb_max_hist_jitter = 0; 
    343343 
    344             if (jb->jb_op_count >= 100 && 
     344            if (jb->jb_op_count >= STABLE_HISTORY_LIMIT*2 && 
    345345                (int)jb_framelist_size(&jb->jb_framelist) > jb->jb_prefetch+2) 
    346346            { 
     
    361361        jb->jb_max_hist_jitter = 0; 
    362362 
    363         if (jb->jb_op_count >= 100) { 
     363        if (jb->jb_op_count >= STABLE_HISTORY_LIMIT * 2) { 
    364364            if ((int)jb_framelist_size(&jb->jb_framelist) > jb->jb_prefetch+2)  
    365365            { 
Note: See TracChangeset for help on using the changeset viewer.