On Wed, Mar 11, 2015 at 07:39:43PM +0100, Anton Khirnov wrote: > Quoting Diego Biurrun (2015-03-10 21:38:46) > > This fixes a number of "assignment from incompatible pointer type" warnings. > > --- 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 (*)(void *)) av_md5_init; > > + c->update = (void (*)(void *, const uint8_t *, int)) > > av_md5_update; > > + c->final = (void (*)(void *, uint8_t *)) 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 *, const uint8_t *, int)) > > av_sha_update; > > Stab. I've seen this patch before and had an objection to it. It's not > addressed here.
I resent it by mistake as it lives in the same local branch... Diego _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
