[FFmpeg-cvslog] r12148 - trunk/libavcodec/fraps.c

Måns Rullgård mans
Tue Feb 19 23:43:05 CET 2008


reimar <subversion at mplayerhq.hu> writes:

> Author: reimar
> Date: Tue Feb 19 22:42:10 2008
> New Revision: 12148
>
> Log:
> Add casts to avoid warnings:
> fraps.c:102: warning: passing argument 1 of ?s->dsp.bswap_buf? from incompatible pointer type
> fraps.c:102: warning: passing argument 2 of ?s->dsp.bswap_buf? from incompatible pointer type
>
> Modified:
>    trunk/libavcodec/fraps.c
>
> Modified: trunk/libavcodec/fraps.c
> ==============================================================================
> --- trunk/libavcodec/fraps.c	(original)
> +++ trunk/libavcodec/fraps.c	Tue Feb 19 22:42:10 2008
> @@ -99,7 +99,7 @@ static int fraps2_decode_plane(FrapsCont
>      /* we have built Huffman table and are ready to decode plane */
>
>      /* convert bits so they may be used by standard bitreader */
> -    s->dsp.bswap_buf(s->tmpbuf, src, size >> 2);
> +    s->dsp.bswap_buf((uint32_t *)s->tmpbuf, (const uint32_t *)src, size >> 2);

Did you verify that those buffers are adequately aligned?

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-cvslog mailing list