Changeset 3536
- Timestamp:
- Apr 13, 2011 8:23:54 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia/stream.c
r3500 r3536 1886 1886 /* Allocate buffer for outgoing packet. */ 1887 1887 1888 if (param->type == PJMEDIA_TYPE_VIDEO) { 1889 channel->out_pkt_size = sizeof(pjmedia_rtp_hdr) + 1890 stream->frame_size; 1891 } else if (param->type == PJMEDIA_TYPE_AUDIO) { 1888 if (param->type == PJMEDIA_TYPE_AUDIO) { 1892 1889 channel->out_pkt_size = sizeof(pjmedia_rtp_hdr) + 1893 1890 stream->codec_param.info.max_bps * 1894 1891 PJMEDIA_MAX_FRAME_DURATION_MS / 1895 1892 8 / 1000; 1896 if (channel->out_pkt_size > PJMEDIA_MAX_MTU) 1897 channel->out_pkt_size = PJMEDIA_MAX_MTU; 1893 if (channel->out_pkt_size > PJMEDIA_MAX_MTU - 1894 PJMEDIA_STREAM_RESV_PAYLOAD_LEN) 1895 { 1896 channel->out_pkt_size = PJMEDIA_MAX_MTU - 1897 PJMEDIA_STREAM_RESV_PAYLOAD_LEN; 1898 } 1898 1899 } else { 1899 1900 return PJ_ENOTSUP;
Note: See TracChangeset
for help on using the changeset viewer.