[FFmpeg-cvslog] r11733 - trunk/libavcodec/mpc7.c

michael subversion
Fri Feb 1 14:51:06 CET 2008


Author: michael
Date: Fri Feb  1 14:51:06 2008
New Revision: 11733

Log:
Casts to silcence "incompatible pointer type" warnings.


Modified:
   trunk/libavcodec/mpc7.c

Modified: trunk/libavcodec/mpc7.c
==============================================================================
--- trunk/libavcodec/mpc7.c	(original)
+++ trunk/libavcodec/mpc7.c	Fri Feb  1 14:51:06 2008
@@ -59,7 +59,7 @@ static int mpc7_decode_init(AVCodecConte
     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 @@ static int mpc7_decode_frame(AVCodecCont
     }
 
     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]);
 




More information about the ffmpeg-cvslog mailing list