- Timestamp:
- Jun 19, 2013 6:47:43 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c
r4311 r4537 455 455 */ 456 456 if (data->fmtp.sprop_param_sets_len) { 457 ctx->extradata_size = data->fmtp.sprop_param_sets_len;457 ctx->extradata_size = (int)data->fmtp.sprop_param_sets_len; 458 458 ctx->extradata = data->fmtp.sprop_param_sets; 459 459 } … … 1289 1289 ff->whole = (ff->param.packing == PJMEDIA_VID_PACKING_WHOLE); 1290 1290 if (!ff->whole) { 1291 ff->enc_buf_size = ff->enc_vafp.framebytes;1291 ff->enc_buf_size = (unsigned)ff->enc_vafp.framebytes; 1292 1292 ff->enc_buf = pj_pool_alloc(ff->pool, ff->enc_buf_size); 1293 1293 1294 ff->dec_buf_size = ff->dec_vafp.framebytes;1294 ff->dec_buf_size = (unsigned)ff->dec_vafp.framebytes; 1295 1295 ff->dec_buf = pj_pool_alloc(ff->pool, ff->dec_buf_size); 1296 1296 } … … 1421 1421 PJ_ALIGN_DATA(pj_uint32_t i[4], 16); 1422 1422 1423 if ((long) i & 0xF) {1423 if ((long)(pj_ssize_t)i & 0xF) { 1424 1424 PJ_LOG(2,(THIS_FILE, "Stack alignment fails")); 1425 1425 } … … 1503 1503 whole_frm.size = ff->enc_buf_size; 1504 1504 status = ffmpeg_codec_encode_whole(codec, opt, input, 1505 whole_frm.size, &whole_frm); 1505 (unsigned)whole_frm.size, 1506 &whole_frm); 1506 1507 if (status != PJ_SUCCESS) 1507 1508 return status; … … 1619 1620 (unsigned)ff->dec_buf_size, 1620 1621 (unsigned)ff->dec_vafp.framebytes)); 1621 ff->dec_buf_size = ff->dec_vafp.framebytes;1622 ff->dec_buf_size = (unsigned)ff->dec_vafp.framebytes; 1622 1623 ff->dec_buf = pj_pool_alloc(ff->pool, ff->dec_buf_size); 1623 1624 } … … 1682 1683 av_init_packet(&avpacket); 1683 1684 avpacket.data = (pj_uint8_t*)input->buf; 1684 avpacket.size = input->size;1685 avpacket.size = (int)input->size; 1685 1686 1686 1687 /* ffmpeg warns:
Note: See TracChangeset
for help on using the changeset viewer.