summaryrefslogtreecommitdiff
path: root/libavcodec/mlp.h
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.h
parent3c9769a008e1a7e5a33307139b3c19b642cea141 (diff)
downloadffmpeg-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.h')
-rw-r--r--libavcodec/mlp.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/mlp.h b/libavcodec/mlp.h
index dc6856727a..a434cd1a22 100644
--- a/libavcodec/mlp.h
+++ b/libavcodec/mlp.h
@@ -107,4 +107,12 @@ int ff_mlp_init_crc2D(AVCodecParserContext *s);
void ff_mlp_init_crc();
+/** XOR four bytes into one. */
+static inline uint8_t xor_32_to_8(uint32_t value)
+{
+ value ^= value >> 16;
+ value ^= value >> 8;
+ return value;
+}
+
#endif /* FFMPEG_MLP_H */