Changeset 4278 for pjproject/trunk/pjmedia/src/pjmedia/stream.c
- Timestamp:
- Oct 5, 2012 10:04:54 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/stream.c
r4263 r4278 2178 2178 2179 2179 /* Get the frame size */ 2180 stream->frame_size = stream->codec_param.info.max_bps * 2181 stream->codec_param.info.frm_ptime / 8 / 1000; 2182 if ((stream->codec_param.info.max_bps * stream->codec_param.info.frm_ptime) 2183 % 8000 != 0) 2184 { 2185 ++stream->frame_size; 2180 if (stream->codec_param.info.max_rx_frame_size > 0) { 2181 stream->frame_size = stream->codec_param.info.max_rx_frame_size; 2182 } else { 2183 stream->frame_size = stream->codec_param.info.max_bps * 2184 stream->codec_param.info.frm_ptime / 8 / 1000; 2185 if ((stream->codec_param.info.max_bps * 2186 stream->codec_param.info.frm_ptime) % 8000 != 0) 2187 { 2188 ++stream->frame_size; 2189 } 2186 2190 } 2187 2191
Note: See TracChangeset
for help on using the changeset viewer.