]> git.sesse.net Git - ffmpeg/blobdiff - libavutil/hash.h
Merge commit 'cc1c94dacd0642ac1a6cad45deb65071f127d91a'
[ffmpeg] / libavutil / hash.h
index a20b8934f196f21b81d6566648eb2b8bc0bc2e4c..7693e6bf0dbca59d878755c786a38c11647e5848 100644 (file)
@@ -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.