Changeset 5544
- Timestamp:
- Jan 24, 2017 5:41:05 AM (8 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib-util/src/pjlib-util/md5.c
r4614 r5544 152 152 153 153 /* Append length in bits and transform */ 154 ((pj_uint32_t *) ctx->in)[14] = ctx->bits[0]; 155 ((pj_uint32_t *) ctx->in)[15] = ctx->bits[1]; 154 //((pj_uint32_t *) ctx->in)[14] = ctx->bits[0]; 155 //((pj_uint32_t *) ctx->in)[15] = ctx->bits[1]; 156 pj_memcpy(&ctx->in[14 << 2], &ctx->bits[0], sizeof(ctx->bits[0])); 157 pj_memcpy(&ctx->in[15 << 2], &ctx->bits[1], sizeof(ctx->bits[1])); 156 158 157 159 MD5Transform(ctx->buf, (pj_uint32_t *) ctx->in); -
pjproject/trunk/pjlib/src/pj/sock_bsd.c
r5444 r5544 229 229 PJ_DEF(char*) pj_inet_ntoa(pj_in_addr inaddr) 230 230 { 231 #if !defined(PJ_LINUX) && !defined(PJ_LINUX_KERNEL)231 #if 0 //!defined(PJ_LINUX) && !defined(PJ_LINUX_KERNEL) 232 232 return inet_ntoa(*(struct in_addr*)&inaddr); 233 233 #else 234 234 struct in_addr addr; 235 addr.s_addr = inaddr.s_addr; 235 //addr.s_addr = inaddr.s_addr; 236 pj_memcpy(&addr, &inaddr, sizeof(addr)); 236 237 return inet_ntoa(addr); 237 238 #endif -
pjproject/trunk/pjlib/src/pj/ssl_sock_ossl.c
r5537 r5544 1322 1322 break; 1323 1323 case GEN_IPADD: 1324 p = ASN1_STRING_data(name->d.ip);1325 len = ASN1_STRING_length(name->d.ip);1324 p = (unsigned char*)M_ASN1_STRING_data(name->d.ip); 1325 len = M_ASN1_STRING_length(name->d.ip); 1326 1326 type = PJ_SSL_CERT_NAME_IP; 1327 1327 break; -
pjproject/trunk/pjmedia/src/pjmedia-audiodev/android_jni_dev.c
r5426 r5544 545 545 pj_status_t status = PJ_SUCCESS; 546 546 int state = 0; 547 int buffSize, inputBuffSizePlay , inputBuffSizeRec;547 int buffSize, inputBuffSizePlay = 0, inputBuffSizeRec = 0; 548 548 int channelInCfg, channelOutCfg, sampleFormat; 549 549 jmethodID constructor_method=0, bufsize_method = 0; … … 932 932 if (stream->track) { 933 933 jmethodID vol_method = 0; 934 int retval ;934 int retval = 0; 935 935 float vol = *(int *)value; 936 936 -
pjproject/trunk/pjmedia/src/pjmedia-videodev/android_dev.c
r5166 r5544 751 751 const pjmedia_video_format_info *vfi; 752 752 pjmedia_video_apply_fmt_param vafp; 753 pj_uint32_t and_fmt ;753 pj_uint32_t and_fmt = 0; 754 754 unsigned convert_to_i420 = 0; 755 755 pj_status_t status = PJ_SUCCESS; … … 1108 1108 jlong user_data) 1109 1109 { 1110 and_stream *strm = *(and_stream**)&user_data;1110 and_stream *strm = (and_stream*)(intptr_t)user_data; 1111 1111 pjmedia_frame f; 1112 1112 pj_uint8_t *Y, *U, *V; 1113 1113 pj_status_t status; 1114 void *frame_buf, *data_buf; 1115 1114 void *frame_buf, *data_buf; 1115 1116 1116 strm->frame_ts.u64 += strm->ts_inc; 1117 1117 if (!strm->vid_cb.capture_cb) -
pjproject/trunk/pjmedia/src/pjmedia/avi_player.c
r5046 r5544 45 45 #define AVI_EOF 0xFFEEFFEE 46 46 47 #define COMPARE_TAG(doc_tag, tag) (doc_tag == *((pj_uint32_t *)avi_tags[tag])) 47 //#define COMPARE_TAG(doc_tag, tag) (doc_tag==*((pj_uint32_t*)avi_tags[tag])) 48 #define COMPARE_TAG(doc_tag, tag) \ 49 (pj_memcmp(&(doc_tag), &avi_tags[tag], 4)==0) 48 50 49 51 #define SIGNATURE PJMEDIA_SIG_PORT_VID_AVI_PLAYER -
pjproject/trunk/pjnath/src/pjnath/stun_msg_dump.c
r5350 r5544 257 257 int len; 258 258 unsigned i; 259 pj_uint32_t tsx_id[3]; 259 260 260 261 PJ_ASSERT_RETURN(msg && buffer && length, NULL); … … 270 271 APPLY(); 271 272 273 pj_memcpy(tsx_id, msg->hdr.tsx_id, sizeof(msg->hdr.tsx_id)); 272 274 len = pj_ansi_snprintf(p, end-p, 273 275 " Hdr: length=%d, magic=%08x, tsx_id=%08x%08x%08x\n" … … 275 277 msg->hdr.length, 276 278 msg->hdr.magic, 277 *(pj_uint32_t*)&msg->hdr.tsx_id[0],278 *(pj_uint32_t*)&msg->hdr.tsx_id[4],279 *(pj_uint32_t*)&msg->hdr.tsx_id[8]);279 tsx_id[0], 280 tsx_id[1], 281 tsx_id[2]); 280 282 APPLY(); 281 283
Note: See TracChangeset
for help on using the changeset viewer.