diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-01-25 18:12:13 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-01-25 18:12:13 +0000 |
commit | 724cc2dfaa10c63a8899309f78ca281a5932ffee (patch) | |
tree | aaf6f154f814770f3bf6d4b0b9037da413b4d6f2 /libavcodec/bitstream.h | |
parent | 7996d1536ec957da0e020e5d1bb3b869dcb484a1 (diff) | |
download | ffmpeg-724cc2dfaa10c63a8899309f78ca281a5932ffee.tar.gz |
Use AV_WL32/AV_WB32 in bitstream.h
Originally committed as revision 16778 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/bitstream.h')
-rw-r--r-- | libavcodec/bitstream.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/libavcodec/bitstream.h b/libavcodec/bitstream.h index 0f8110612a..9af01afa8f 100644 --- a/libavcodec/bitstream.h +++ b/libavcodec/bitstream.h @@ -198,10 +198,7 @@ static inline void put_bits(PutBitContext *s, int n, unsigned int value) if (n >= bit_left) { #if !HAVE_FAST_UNALIGNED if (3 & (intptr_t) s->buf_ptr) { - s->buf_ptr[0] = bit_buf ; - s->buf_ptr[1] = bit_buf >> 8; - s->buf_ptr[2] = bit_buf >> 16; - s->buf_ptr[3] = bit_buf >> 24; + AV_WL32(s->buf_ptr, bit_buf); } else #endif *(uint32_t *)s->buf_ptr = le2me_32(bit_buf); @@ -219,10 +216,7 @@ static inline void put_bits(PutBitContext *s, int n, unsigned int value) bit_buf |= value >> (n - bit_left); #if !HAVE_FAST_UNALIGNED if (3 & (intptr_t) s->buf_ptr) { - s->buf_ptr[0] = bit_buf >> 24; - s->buf_ptr[1] = bit_buf >> 16; - s->buf_ptr[2] = bit_buf >> 8; - s->buf_ptr[3] = bit_buf ; + AV_WB32(s->buf_ptr, bit_buf); } else #endif *(uint32_t *)s->buf_ptr = be2me_32(bit_buf); |