X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavutil%2Fhash.h;h=7693e6bf0dbca59d878755c786a38c11647e5848;hb=7033654f7f3c6663c9b5005b87fc06c29075244d;hp=a20b8934f196f21b81d6566648eb2b8bc0bc2e4c;hpb=e9dfc6f9006f81d6267d183b00616053b514df8f;p=ffmpeg diff --git a/libavutil/hash.h b/libavutil/hash.h index a20b8934f19..7693e6bf0db 100644 --- a/libavutil/hash.h +++ b/libavutil/hash.h @@ -29,6 +29,8 @@ #include +#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.