Changeset 2478
- Timestamp:
- Feb 24, 2009 4:17:27 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/1.0/pjmedia/src/pjmedia/stream.c
r2394 r2478 1668 1668 1669 1669 /* Init jitter buffer parameters: */ 1670 if (info->jb_max > 0) 1671 jb_max = info->jb_max; 1670 if (info->jb_max >= stream->codec_param.info.frm_ptime) 1671 jb_max = (info->jb_max + stream->codec_param.info.frm_ptime - 1) / 1672 stream->codec_param.info.frm_ptime; 1672 1673 else 1673 1674 jb_max = 500 / stream->codec_param.info.frm_ptime; 1674 1675 1675 if (info->jb_min_pre > 0)1676 jb_min_pre = info->jb_min_pre ;1676 if (info->jb_min_pre >= stream->codec_param.info.frm_ptime) 1677 jb_min_pre = info->jb_min_pre / stream->codec_param.info.frm_ptime; 1677 1678 else 1678 1679 //jb_min_pre = 60 / stream->codec_param.info.frm_ptime; 1679 1680 jb_min_pre = 1; 1680 1681 1681 if (info->jb_max_pre > 0)1682 jb_max_pre = info->jb_max_pre ;1682 if (info->jb_max_pre >= stream->codec_param.info.frm_ptime) 1683 jb_max_pre = info->jb_max_pre / stream->codec_param.info.frm_ptime; 1683 1684 else 1684 1685 //jb_max_pre = 240 / stream->codec_param.info.frm_ptime; 1685 1686 jb_max_pre = jb_max * 4 / 5; 1686 1687 1687 if (info->jb_init > 0)1688 jb_init = info->jb_init ;1688 if (info->jb_init >= stream->codec_param.info.frm_ptime) 1689 jb_init = info->jb_init / stream->codec_param.info.frm_ptime; 1689 1690 else 1690 1691 //jb_init = (jb_min_pre + jb_max_pre) / 2;
Note: See TracChangeset
for help on using the changeset viewer.