]> git.sesse.net Git - ffmpeg/blobdiff - libavutil/hash.c
avutil: Switch crypto APIs to size_t
[ffmpeg] / libavutil / hash.c
index 75edb6db78865263d89aa4bf1418f31b910d650e..9a49748189c958052076c9581d809c6cedefdd4a 100644 (file)
@@ -17,6 +17,8 @@
  * License along with FFmpeg; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
+
+#include <stddef.h>
 #include <stdint.h>
 #include "hash.h"
 
@@ -155,11 +157,7 @@ void av_hash_init(AVHashContext *ctx)
     }
 }
 
-#if FF_API_CRYPTO_SIZE_T
-void av_hash_update(AVHashContext *ctx, const uint8_t *src, int len)
-#else
 void av_hash_update(AVHashContext *ctx, const uint8_t *src, size_t len)
-#endif
 {
     switch (ctx->type) {
     case MD5:     av_md5_update(ctx->ctx, src, len); break;