comparison apedec.c @ 6202:c82299110182 libavcodec

cast to correct type, fix warning: apedec.c:859: warning: passing argument 1 of 's->dsp.bswap_buf' from incompatible pointer type
author bcoudurier
date Thu, 31 Jan 2008 00:10:56 +0000
parents 1275461ae6f8
children f07ad27251e5
comparison
equal deleted inserted replaced
6201:600f7baa119b 6202:c82299110182
854 return -1; 854 return -1;
855 } 855 }
856 856
857 if(!s->samples){ 857 if(!s->samples){
858 s->data = av_realloc(s->data, (buf_size + 3) & ~3); 858 s->data = av_realloc(s->data, (buf_size + 3) & ~3);
859 s->dsp.bswap_buf(s->data, buf, buf_size >> 2); 859 s->dsp.bswap_buf((uint32_t*)s->data, (uint32_t*)buf, buf_size >> 2);
860 s->ptr = s->last_ptr = s->data; 860 s->ptr = s->last_ptr = s->data;
861 s->data_end = s->data + buf_size; 861 s->data_end = s->data + buf_size;
862 862
863 nblocks = s->samples = bytestream_get_be32(&s->ptr); 863 nblocks = s->samples = bytestream_get_be32(&s->ptr);
864 n = bytestream_get_be32(&s->ptr); 864 n = bytestream_get_be32(&s->ptr);