Mercurial > libavcodec.hg
changeset 6242:67986191913d libavcodec
Casts to silcence "incompatible pointer type" warnings.
author | michael |
---|---|
date | Fri, 01 Feb 2008 13:51:06 +0000 |
parents | 2799f65a24de |
children | 930ac362be5a |
files | mpc7.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mpc7.c Fri Feb 01 13:49:15 2008 +0000 +++ b/mpc7.c Fri Feb 01 13:51:06 2008 +0000 @@ -59,7 +59,7 @@ memset(c->oldDSCF, 0, sizeof(c->oldDSCF)); av_init_random(0xDEADBEEF, &c->rnd); dsputil_init(&c->dsp, avctx); - c->dsp.bswap_buf(buf, avctx->extradata, 4); + c->dsp.bswap_buf((uint32_t*)buf, (const uint32_t*)avctx->extradata, 4); ff_mpc_init(); init_get_bits(&gb, buf, 128); @@ -175,7 +175,7 @@ } bits = av_malloc(((buf_size - 1) & ~3) + FF_INPUT_BUFFER_PADDING_SIZE); - c->dsp.bswap_buf(bits, buf + 4, (buf_size - 4) >> 2); + c->dsp.bswap_buf((uint32_t*)bits, (const uint32_t*)(buf + 4), (buf_size - 4) >> 2); init_get_bits(&gb, bits, (buf_size - 4)* 8); skip_bits(&gb, buf[0]);