Revision 2755e41d

View differences:

libavcodec/s3tc.c
31 31
    unsigned int rb0, rb1, rb2, rb3, g0, g1, g2, g3;
32 32
    uint32_t colors[4], pixels;
33 33

  
34
    c0 = le2me_16(*(uint16_t *)(s));
35
    c1 = le2me_16(*(uint16_t *)(s+2));
34
    c0 = AV_RL16(s);
35
    c1 = AV_RL16(s+2);
36 36

  
37 37
    rb0  = (c0<<3 | c0<<8) & 0xf800f8;
38 38
    rb1  = (c1<<3 | c1<<8) & 0xf800f8;
......
60 60

  
61 61
    colors[2] = rb2 + g2 + a;
62 62

  
63
    pixels = le2me_32(*(uint32_t *)(s+4));
63
    pixels = AV_RL32(s+4);
64 64
    for (y=0; y<4; y++) {
65 65
        for (x=0; x<4; x++) {
66 66
            a        = (alpha & 0x0f) << 28;

Also available in: Unified diff