Revision e05c8d06

View differences:

libavcodec/atrac3.c
230 230
    const uint32_t* buf;
231 231
    uint32_t* obuf = (uint32_t*) out;
232 232

  
233
    off = (int)((long)inbuffer & 3);
233
    off = (intptr_t)inbuffer & 3;
234 234
    buf = (const uint32_t*) (inbuffer - off);
235 235
    c = be2me_32((0x537F6103 >> (off*8)) | (0x537F6103 << (32-(off*8))));
236 236
    bytes += 3 + off;
libavcodec/cook.c
302 302
     *     (int64_t)out[i] = 0x37c511f237c511f2^be2me_64(int64_t)in[i]);
303 303
     * Buffer alignment needs to be checked. */
304 304

  
305
    off = (int)((long)inbuffer & 3);
305
    off = (intptr_t)inbuffer & 3;
306 306
    buf = (const uint32_t*) (inbuffer - off);
307 307
    c = be2me_32((0x37c511f2 >> (off*8)) | (0x37c511f2 << (32-(off*8))));
308 308
    bytes += 3 + off;

Also available in: Unified diff