- Timestamp:
- Jun 19, 2013 6:47:43 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia-codec/h264_packetizer.c
r4006 r4537 215 215 else 216 216 *payload_len = nal_end - nal_start + HEADER_SIZE_FU_A; 217 *pos = *payload + *payload_len - buf;217 *pos = (unsigned)(*payload + *payload_len - buf); 218 218 219 219 #if DBG_PACKETIZE … … 243 243 nal[0] = nal_start; 244 244 nal_size[0] = nal_end - nal_start; 245 total_size = nal_size[0] + HEADER_SIZE_STAP_A;245 total_size = (int)nal_size[0] + HEADER_SIZE_STAP_A; 246 246 NRI = (*nal_octet & 0x60) >> 5; 247 247 … … 267 267 268 268 /* Update total payload size (2 octet NAL size + NAL) */ 269 total_size += (2 + nal_size[nal_cnt]);269 total_size += (2 + (int)nal_size[nal_cnt]); 270 270 if (total_size <= pktz->cfg.mtu) { 271 271 pj_uint8_t tmp_nri; … … 307 307 pj_assert(*payload >= buf+*pos); 308 308 *payload_len = p - *payload; 309 *pos = nal[nal_cnt-1] + nal_size[nal_cnt-1] - buf;309 *pos = (unsigned)(nal[nal_cnt-1] + nal_size[nal_cnt-1] - buf); 310 310 311 311 #if DBG_PACKETIZE … … 322 322 *payload = nal_start; 323 323 *payload_len = nal_end - nal_start; 324 *pos = nal_end - buf;324 *pos = (unsigned)(nal_end - buf); 325 325 326 326 #if DBG_PACKETIZE … … 400 400 401 401 /* Update the bitstream writing offset */ 402 *bits_pos = p - bits;402 *bits_pos = (unsigned)(p - bits); 403 403 pktz->unpack_last_sync_pos = *bits_pos; 404 404 … … 451 451 452 452 /* Update the bitstream writing offset */ 453 *bits_pos = p - bits;453 *bits_pos = (unsigned)(p - bits); 454 454 pktz->unpack_last_sync_pos = *bits_pos; 455 455 } … … 510 510 511 511 /* Update the bitstream writing offset */ 512 *bits_pos = p - bits;512 *bits_pos = (unsigned)(p - bits); 513 513 if (E) { 514 514 /* Update the sync pos only if the end bit flag is set */
Note: See TracChangeset
for help on using the changeset viewer.