Changeset 4003 for pjproject/trunk
- Timestamp:
- Mar 30, 2012 8:55:18 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/vid_stream.c
r3998 r4003 1267 1267 pjmedia_video_format_detail *vfd_enc, *vfd_dec; 1268 1268 char *p; 1269 unsigned mtu;1269 unsigned dec_mtu; 1270 1270 pj_status_t status; 1271 1271 … … 1319 1319 if (info->codec_param->enc_mtu > PJMEDIA_MAX_MTU) 1320 1320 info->codec_param->enc_mtu = PJMEDIA_MAX_MTU; 1321 mtu = info->codec_param->enc_mtu; 1321 1322 /* MTU estimation for decoding direction */ 1323 dec_mtu = PJMEDIA_MAX_MTU; 1322 1324 1323 1325 vfd_enc = pjmedia_format_get_video_format_detail( … … 1421 1423 /* Init jitter buffer parameters: */ 1422 1424 frm_ptime = 1000 * vfd_enc->fps.denum / vfd_enc->fps.num; 1423 chunks_per_frm = stream->frame_size / mtu;1425 chunks_per_frm = stream->frame_size / dec_mtu; 1424 1426 if (chunks_per_frm == 0) chunks_per_frm = 1; 1425 1427 … … 1457 1459 /* Create jitter buffer */ 1458 1460 status = pjmedia_jbuf_create(pool, &stream->dec->port.info.name, 1459 mtu + PJMEDIA_STREAM_RESV_PAYLOAD_LEN,1461 dec_mtu + PJMEDIA_STREAM_RESV_PAYLOAD_LEN, 1460 1462 1000 * vfd_enc->fps.denum / vfd_enc->fps.num, 1461 1463 jb_max, &stream->jb);
Note: See TracChangeset
for help on using the changeset viewer.