cast to correct type, fix warning: apedec.c:859: warning: passing argument 1 of ...
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Thu, 31 Jan 2008 00:10:56 +0000 (00:10 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Thu, 31 Jan 2008 00:10:56 +0000 (00:10 +0000)
Originally committed as revision 11679 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/apedec.c

index 29d4d3f..5421aad 100644 (file)
@@ -856,7 +856,7 @@ static int ape_decode_frame(AVCodecContext * avctx,
 
     if(!s->samples){
         s->data = av_realloc(s->data, (buf_size + 3) & ~3);
 
     if(!s->samples){
         s->data = av_realloc(s->data, (buf_size + 3) & ~3);
-        s->dsp.bswap_buf(s->data, buf, buf_size >> 2);
+        s->dsp.bswap_buf((uint32_t*)s->data, (uint32_t*)buf, buf_size >> 2);
         s->ptr = s->last_ptr = s->data;
         s->data_end = s->data + buf_size;
 
         s->ptr = s->last_ptr = s->data;
         s->data_end = s->data + buf_size;