OSDN Git Service

kill a warning, av_sha1_update accepts uint8_t * not uint64_t *
authorLuca Barbato <lu_zero@gentoo.org>
Wed, 12 Dec 2007 21:03:11 +0000 (21:03 +0000)
committerLuca Barbato <lu_zero@gentoo.org>
Wed, 12 Dec 2007 21:03:11 +0000 (21:03 +0000)
Originally committed as revision 11208 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavutil/sha1.c

index 21edb97..971fac7 100644 (file)
@@ -140,7 +140,7 @@ void av_sha1_final(AVSHA1* ctx, uint8_t digest[20]){
     while ((ctx->count & 63) != 56) {
         av_sha1_update(ctx, "", 1);
     }
-    av_sha1_update(ctx, &finalcount, 8);  /* Should cause a transform() */
+    av_sha1_update(ctx, (uint8_t *)&finalcount, 8); /* Should cause a transform() */
     for(i=0; i<5; i++)
         ((uint32_t*)digest)[i]= be2me_32(ctx->state[i]);
 }