diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2008-02-01 23:49:56 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2008-02-01 23:49:56 +0000 |
commit | 2755e41d26214161ed2a40f3a3d17309adebb528 (patch) | |
tree | edf24730ae12669e9cd422f4e974dcad5e7c06f0 /libavcodec | |
parent | 4e56af82533e0912dd7dce9b32e151b17d6eaf3f (diff) | |
download | ffmpeg-2755e41d26214161ed2a40f3a3d17309adebb528.tar.gz |
use AV_RL* instead of le2me_*
Originally committed as revision 11802 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/s3tc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/s3tc.c b/libavcodec/s3tc.c index bc8e3d2656..fc035e5778 100644 --- a/libavcodec/s3tc.c +++ b/libavcodec/s3tc.c @@ -31,8 +31,8 @@ static inline void dxt1_decode_pixels(const uint8_t *s, uint32_t *d, unsigned int rb0, rb1, rb2, rb3, g0, g1, g2, g3; uint32_t colors[4], pixels; - c0 = le2me_16(*(uint16_t *)(s)); - c1 = le2me_16(*(uint16_t *)(s+2)); + c0 = AV_RL16(s); + c1 = AV_RL16(s+2); rb0 = (c0<<3 | c0<<8) & 0xf800f8; rb1 = (c1<<3 | c1<<8) & 0xf800f8; @@ -60,7 +60,7 @@ static inline void dxt1_decode_pixels(const uint8_t *s, uint32_t *d, colors[2] = rb2 + g2 + a; - pixels = le2me_32(*(uint32_t *)(s+4)); + pixels = AV_RL32(s+4); for (y=0; y<4; y++) { for (x=0; x<4; x++) { a = (alpha & 0x0f) << 28; |