summaryrefslogtreecommitdiffstats
path: root/libavcodec/mlp.c
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2008-08-14 03:58:05 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2008-08-14 03:58:05 +0000
commita7cc783d711f0f47eb748a33b55d0c4f57ac1840 (patch)
tree4127268c5cfa5d1eae5bcf30a942fc22ee113dad /libavcodec/mlp.c
parent3c9769a008e1a7e5a33307139b3c19b642cea141 (diff)
downloadffmpeg-streaming-a7cc783d711f0f47eb748a33b55d0c4f57ac1840.zip
ffmpeg-streaming-a7cc783d711f0f47eb748a33b55d0c4f57ac1840.tar.gz
mlp: split simple inline function that xors 4 bytes into one.
Originally committed as revision 14747 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mlp.c')
-rw-r--r--libavcodec/mlp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/mlp.c b/libavcodec/mlp.c
index f2a0276..2ac2e65 100644
--- a/libavcodec/mlp.c
+++ b/libavcodec/mlp.c
@@ -110,8 +110,7 @@ uint8_t ff_mlp_calculate_parity(const uint8_t *buf, unsigned int buf_size)
for (; buf < buf_end - 3; buf += 4)
scratch ^= *((const uint32_t*)buf);
- scratch ^= scratch >> 16;
- scratch ^= scratch >> 8;
+ scratch = xor_32_to_8(scratch);
for (; buf < buf_end; buf++)
scratch ^= *buf;
OpenPOWER on IntegriCloud