summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNanang Izzuddin <nanang@teluu.com>2010-10-29 03:27:17 +0000
committerNanang Izzuddin <nanang@teluu.com>2010-10-29 03:27:17 +0000
commit23acf0bf297edf14814e5e83d7ed6b3ec57ddec5 (patch)
tree326e0d01c3175c327375f33e8963550034bf8df9
parentded3accc9ea22f489164ee3816616cd024a749d9 (diff)
Misc (re #1151): fixed jitter buffer state 'jb_max_burst' initialization, MAX_BURST_MSEC should be converted to number-of-frame unit (thanks Zhefeng Du for the fix).
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3359 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r--pjmedia/src/pjmedia/jbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pjmedia/src/pjmedia/jbuf.c b/pjmedia/src/pjmedia/jbuf.c
index 3d284d74..7a863f2a 100644
--- a/pjmedia/src/pjmedia/jbuf.c
+++ b/pjmedia/src/pjmedia/jbuf.c
@@ -476,7 +476,7 @@ PJ_DEF(pj_status_t) pjmedia_jbuf_create(pj_pool_t *pool,
jb->jb_max_prefetch = max_count*4/5;
jb->jb_max_count = max_count;
jb->jb_min_shrink_gap= MIN_SHRINK_GAP_MSEC / ptime;
- jb->jb_max_burst = PJ_MAX(MAX_BURST_MSEC, max_count*3/4);
+ jb->jb_max_burst = PJ_MAX(MAX_BURST_MSEC / ptime, max_count*3/4);
jb->jb_last_discard_seq = 0;
pj_math_stat_init(&jb->jb_delay);