[FFmpeg-cvslog] avutil/hmac: silence pointer type warnings

Michael Niedermayer git at videolan.org
Mon May 20 14:56:41 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon May 20 14:48:55 2013 +0200| [9c49d5908d0790f7f1e7b0f2eb077dac2d2d7907] | committer: Michael Niedermayer

avutil/hmac: silence pointer type warnings

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9c49d5908d0790f7f1e7b0f2eb077dac2d2d7907
---

 libavutil/hmac.c |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/libavutil/hmac.c b/libavutil/hmac.c
index c5a1c89..f1cf7a4 100644
--- a/libavutil/hmac.c
+++ b/libavutil/hmac.c
@@ -53,17 +53,17 @@ AVHMAC *av_hmac_alloc(enum AVHMACType type)
     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*)av_md5_init;
+        c->update   = (void*)av_md5_update;
+        c->final    = (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*)av_sha_update;
+        c->final    = (void*)av_sha_final;
         c->hash     = av_sha_alloc();
         break;
     default:



More information about the ffmpeg-cvslog mailing list