Changeset 4537 for pjproject/trunk/pjsip-apps/src/samples/pcaputil.c
- Timestamp:
- Jun 19, 2013 6:47:43 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/samples/pcaputil.c
r3841 r4537 89 89 if (pos >= 0) { 90 90 unsigned msec; 91 msec = pos / 2 * 1000 / PJMEDIA_PIA_SRATE(&app.wav->info);91 msec = (unsigned)pos / 2 * 1000 / PJMEDIA_PIA_SRATE(&app.wav->info); 92 92 printf("Written: %dm:%02ds.%03d\n", 93 93 msec / 1000 / 60, … … 163 163 * SRTP decoding 164 164 */ 165 status = pjmedia_rtp_decode_rtp(&app.rtp_sess, buf, sz, &r,165 status = pjmedia_rtp_decode_rtp(&app.rtp_sess, buf, (int)sz, &r, 166 166 &p, payload_size); 167 167 if (status != PJ_SUCCESS) { … … 175 175 #if PJMEDIA_HAS_SRTP 176 176 if (app.srtp) { 177 int len = sz;177 int len = (int)sz; 178 178 status = pjmedia_transport_srtp_decrypt_pkt(app.srtp, PJ_TRUE, 179 179 buf, &len); … … 188 188 189 189 /* Decode RTP packet again */ 190 status = pjmedia_rtp_decode_rtp(&app.rtp_sess, buf, sz, &r,190 status = pjmedia_rtp_decode_rtp(&app.rtp_sess, buf, (int)sz, &r, 191 191 &p, payload_size); 192 192 if (status != PJ_SUCCESS) { … … 377 377 pcm_frame.size = samples_per_frame * 2; 378 378 379 T( pjmedia_codec_decode(app.codec, &frames[i], pcm_frame.size,380 &pcm_frame) );379 T( pjmedia_codec_decode(app.codec, &frames[i], 380 (unsigned)pcm_frame.size, &pcm_frame) ); 381 381 if (app.wav) { 382 382 T( pjmedia_port_put_frame(app.wav, &pcm_frame) ); … … 401 401 402 402 if (app.codec->op->recover) { 403 T( pjmedia_codec_recover(app.codec, pcm_frame.size,403 T( pjmedia_codec_recover(app.codec, (unsigned)pcm_frame.size, 404 404 &pcm_frame) ); 405 405 } else {
Note: See TracChangeset
for help on using the changeset viewer.