Revision 4990eb5f libavcodec/imc.c

View differences:

libavcodec/imc.c
636 636
    int flag;
637 637
    int bits, summer;
638 638
    int counter, bitscount;
639
    uint16_t *buf16 = (uint16_t *) buf;
639
    uint16_t buf16[IMC_BLOCK_SIZE / 2];
640 640

  
641 641
    for(i = 0; i < IMC_BLOCK_SIZE / 2; i++)
642
        buf16[i] = bswap_16(buf16[i]);
642
        buf16[i] = bswap_16(((const uint16_t*)buf)[i]);
643 643

  
644
    init_get_bits(&q->gb, buf, IMC_BLOCK_SIZE * 8);
644
    init_get_bits(&q->gb, (const uint8_t*)buf16, IMC_BLOCK_SIZE * 8);
645 645

  
646 646
    /* Check the frame header */
647 647
    imc_hdr = get_bits(&q->gb, 9);

Also available in: Unified diff