summarylogtreecommitdiffstats
path: root/hmac_incompatible_pointers.patch
blob: d38d0dc951ed49bd4d7d1cae680b95bef37b1142 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff -Naur ffmpeg-1.2.12.orig/libavutil/hmac.c ffmpeg-1.2.12/libavutil/hmac.c
--- ffmpeg-1.2.12.orig/libavutil/hmac.c	2015-02-12 15:38:21.000000000 +0100
+++ ffmpeg-1.2.12/libavutil/hmac.c	2024-09-23 01:29:45.191564637 +0200
@@ -52,17 +52,17 @@
     case AV_HMAC_MD5:
         c->blocklen = 64;
         c->hashlen  = 16;
-        c->init     = av_md5_init;
-        c->update   = av_md5_update;
-        c->final    = av_md5_final;
+        c->init     = (void *)(void *) av_md5_init;
+        c->update   = (void *)(void *) av_md5_update;
+        c->final    = (void *)(void *) av_md5_final;
         c->hash     = av_md5_alloc();
         break;
     case AV_HMAC_SHA1:
         c->blocklen = 64;
         c->hashlen  = 20;
         c->init     = sha1_init;
-        c->update   = av_sha_update;
-        c->final    = av_sha_final;
+        c->update   = (void *)(void *) av_sha_update;
+        c->final    = (void *)(void *) av_sha_final;
         c->hash     = av_sha_alloc();
         break;
     default: