Changeset 3162


Ignore:
Timestamp:
May 7, 2010 3:20:10 PM (15 years ago)
Author:
nanang
Message:

Re #1067: Updated maximum acceptable burst setting in jitter buffer, was hardcoded 1s, now it is 3/4 of JB max size and must not be lower than 1s.

File:
1 edited

Legend:

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

    r3154 r3162  
    477477    jb->jb_max_count     = max_count; 
    478478    jb->jb_min_shrink_gap= MIN_SHRINK_GAP_MSEC / ptime; 
    479     jb->jb_max_burst     = MAX_BURST_MSEC / ptime; 
     479    jb->jb_max_burst     = PJ_MAX(MAX_BURST_MSEC, max_count*3/4); 
    480480    jb->jb_last_discard_seq = 0; 
    481481 
Note: See TracChangeset for help on using the changeset viewer.