From e6b22522c94cfccda97018e52ab65da8c69d8a56 Mon Sep 17 00:00:00 2001 From: Måns Rullgård Date: Sat, 10 Jul 2010 22:09:01 +0000 Subject: bswap: change ME to NE in macro names Other parts of FFmpeg use NE (native endian) rather than ME (machine). This makes it consistent. Originally committed as revision 24169 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/put_bits.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libavcodec/put_bits.h') diff --git a/libavcodec/put_bits.h b/libavcodec/put_bits.h index 44d81c1aa2..835c9e4157 100644 --- a/libavcodec/put_bits.h +++ b/libavcodec/put_bits.h @@ -168,7 +168,7 @@ static inline void put_bits(PutBitContext *s, int n, unsigned int value) AV_WL32(s->buf_ptr, bit_buf); } else #endif - *(uint32_t *)s->buf_ptr = le2me_32(bit_buf); + *(uint32_t *)s->buf_ptr = le2ne_32(bit_buf); s->buf_ptr+=4; bit_buf = (bit_left==32)?0:value >> bit_left; bit_left+=32; @@ -186,7 +186,7 @@ static inline void put_bits(PutBitContext *s, int n, unsigned int value) AV_WB32(s->buf_ptr, bit_buf); } else #endif - *(uint32_t *)s->buf_ptr = be2me_32(bit_buf); + *(uint32_t *)s->buf_ptr = be2ne_32(bit_buf); //printf("bitbuf = %08x\n", bit_buf); s->buf_ptr+=4; bit_left+=32 - n; @@ -224,8 +224,8 @@ static inline void put_bits(PutBitContext *s, int n, unsigned int value) value<<= 32-n; - ptr[0] |= be2me_32(value>>(index&31)); - ptr[1] = be2me_32(value<<(32-(index&31))); + ptr[0] |= be2ne_32(value>>(index&31)); + ptr[1] = be2ne_32(value<<(32-(index&31))); //if(n>24) printf("%d %d\n", n, value); index+= n; s->index= index; @@ -252,7 +252,7 @@ static inline void put_bits(PutBitContext *s, int n, unsigned int value) int index= s->index; uint32_t *ptr= (uint32_t*)(((uint8_t *)s->buf)+(index>>3)); - ptr[0] |= be2me_32(value<<(32-n-(index&7) )); + ptr[0] |= be2ne_32(value<<(32-n-(index&7) )); ptr[1] = 0; //if(n>24) printf("%d %d\n", n, value); index+= n; -- cgit v1.2.3