]> git.sesse.net Git - ffmpeg/blobdiff - libavutil/sha.c
avutil: Add av_cold attributes to init functions missing them
[ffmpeg] / libavutil / sha.c
index c7c6ce38cfc04ead96fc606840bc366a5467a4ef..2d9b58cda65502f63fc15b09164ad87f6345b9b6 100644 (file)
@@ -22,6 +22,8 @@
  */
 
 #include <string.h>
+
+#include "attributes.h"
 #include "avutil.h"
 #include "bswap.h"
 #include "sha.h"
@@ -251,7 +253,7 @@ static void sha256_transform(uint32_t *state, const uint8_t buffer[64])
 }
 
 
-int av_sha_init(AVSHA* ctx, int bits)
+av_cold int av_sha_init(AVSHA *ctx, int bits)
 {
     ctx->digest_len = bits >> 5;
     switch (bits) {