Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2018-02-15 17:12:54 +0300
committerJames Almer <jamrial@gmail.com>2018-02-15 17:21:28 +0300
commit8a8d0b319a9f941e1fcfda65f3a77c607cb05af2 (patch)
tree15f22c984566b9bf666c5459eb398dc8d4e8e9c1 /libavutil/hash.h
parent75027066d8e85ccf42b83f6cf1c3085221148f42 (diff)
avutil/crypto: change length parameter to size_t on the remaining modules
See 651ee9346105b9d492e01172ab447c04d03fa32e fcc4ed1efa1a7575dc45fe57ce552af331941469 Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavutil/hash.h')
-rw-r--r--libavutil/hash.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavutil/hash.h b/libavutil/hash.h
index a20b8934f1..7693e6bf0d 100644
--- a/libavutil/hash.h
+++ b/libavutil/hash.h
@@ -29,6 +29,8 @@
#include <stdint.h>
+#include "version.h"
+
/**
* @defgroup lavu_hash Hash Functions
* @ingroup lavu_crypto
@@ -179,7 +181,11 @@ void av_hash_init(struct AVHashContext *ctx);
* @param[in] src Data to be added to the hash context
* @param[in] len Size of the additional data
*/
+#if FF_API_CRYPTO_SIZE_T
void av_hash_update(struct AVHashContext *ctx, const uint8_t *src, int len);
+#else
+void av_hash_update(struct AVHashContext *ctx, const uint8_t *src, size_t len);
+#endif
/**
* Finalize a hash context and compute the actual hash value.