]> git.sesse.net Git - ffmpeg/blobdiff - libavutil/hash.h
avutil/pixfmt: Remove deprecated VAAPI pixel formats
[ffmpeg] / libavutil / hash.h
index a20b8934f196f21b81d6566648eb2b8bc0bc2e4c..af4719e4231713749daa19686bb4e24f20dc62e0 100644 (file)
 #ifndef AVUTIL_HASH_H
 #define AVUTIL_HASH_H
 
+#include <stddef.h>
 #include <stdint.h>
 
+#include "version.h"
+
 /**
  * @defgroup lavu_hash Hash Functions
  * @ingroup lavu_crypto
@@ -179,7 +182,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.