[FFmpeg-cvslog] r11679 - trunk/libavcodec/apedec.c
Måns Rullgård
mans
Thu Jan 31 02:59:35 CET 2008
bcoudurier <subversion at mplayerhq.hu> writes:
> Author: bcoudurier
> Date: Thu Jan 31 01:10:56 2008
> New Revision: 11679
>
> Log:
> cast to correct type, fix warning: apedec.c:859: warning: passing argument 1 of 's->dsp.bswap_buf' from incompatible pointer type
>
> Modified:
> trunk/libavcodec/apedec.c
>
> Modified: trunk/libavcodec/apedec.c
> ==============================================================================
> --- trunk/libavcodec/apedec.c (original)
> +++ trunk/libavcodec/apedec.c Thu Jan 31 01:10:56 2008
> @@ -856,7 +856,7 @@ static int ape_decode_frame(AVCodecConte
>
> 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);
Is proper alignment guaranteed here?
--
M?ns Rullg?rd
mans at mansr.com
More information about the ffmpeg-cvslog
mailing list