Ignore:
Timestamp:
Jun 19, 2013 6:47:43 AM (11 years ago)
Author:
riza
Message:

Re #1680: Add initial support for Win64

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-codec/h264_packetizer.c

    r4006 r4537  
    215215        else 
    216216            *payload_len = nal_end - nal_start + HEADER_SIZE_FU_A; 
    217         *pos = *payload + *payload_len - buf; 
     217        *pos = (unsigned)(*payload + *payload_len - buf); 
    218218 
    219219#if DBG_PACKETIZE 
     
    243243        nal[0] = nal_start; 
    244244        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; 
    246246        NRI = (*nal_octet & 0x60) >> 5; 
    247247 
     
    267267 
    268268            /* 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]); 
    270270            if (total_size <= pktz->cfg.mtu) { 
    271271                pj_uint8_t tmp_nri; 
     
    307307            pj_assert(*payload >= buf+*pos); 
    308308            *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); 
    310310 
    311311#if DBG_PACKETIZE 
     
    322322    *payload = nal_start; 
    323323    *payload_len = nal_end - nal_start; 
    324     *pos = nal_end - buf; 
     324    *pos = (unsigned)(nal_end - buf); 
    325325 
    326326#if DBG_PACKETIZE 
     
    400400 
    401401        /* Update the bitstream writing offset */ 
    402         *bits_pos = p - bits; 
     402        *bits_pos = (unsigned)(p - bits); 
    403403        pktz->unpack_last_sync_pos = *bits_pos; 
    404404 
     
    451451 
    452452            /* Update the bitstream writing offset */ 
    453             *bits_pos = p - bits; 
     453            *bits_pos = (unsigned)(p - bits); 
    454454            pktz->unpack_last_sync_pos = *bits_pos; 
    455455        } 
     
    510510 
    511511        /* Update the bitstream writing offset */ 
    512         *bits_pos = p - bits; 
     512        *bits_pos = (unsigned)(p - bits); 
    513513        if (E) { 
    514514            /* Update the sync pos only if the end bit flag is set */ 
Note: See TracChangeset for help on using the changeset viewer.