summaryrefslogtreecommitdiff
path: root/libavcodec/mlp.h
diff options
context:
space:
mode:
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 */