From c4f56113201fe07d2c1067356522dd0aea68e5d8 Mon Sep 17 00:00:00 2001 From: Haitao Huang Date: Fri, 6 Jul 2012 14:08:47 +0200 Subject: [PATCH] test/encode/avcenc: rename swap32() to va_swap32(). Signed-off-by: Haitao Huang --- test/encode/avcenc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/encode/avcenc.c b/test/encode/avcenc.c index adaa28a..c4f3b3b 100644 --- a/test/encode/avcenc.c +++ b/test/encode/avcenc.c @@ -672,7 +672,7 @@ get_coded_bitsteam_length(unsigned char *buffer, int buffer_length) #endif static unsigned int -swap32(unsigned int val) +va_swap32(unsigned int val) { unsigned char *pval = (unsigned char *)&val; @@ -698,7 +698,7 @@ bitstream_end(bitstream *bs) int bit_left = 32 - bit_offset; if (bit_offset) { - bs->buffer[pos] = swap32((bs->buffer[pos] << bit_left)); + bs->buffer[pos] = va_swap32((bs->buffer[pos] << bit_left)); } } @@ -719,7 +719,7 @@ bitstream_put_ui(bitstream *bs, unsigned int val, int size_in_bits) } else { size_in_bits -= bit_left; bs->buffer[pos] = (bs->buffer[pos] << bit_left) | (val >> size_in_bits); - bs->buffer[pos] = swap32(bs->buffer[pos]); + bs->buffer[pos] = va_swap32(bs->buffer[pos]); if (pos + 1 == bs->max_size_in_dword) { bs->max_size_in_dword += BITSTREAM_ALLOCATE_STEPPING; -- 2.7.4