[MPlayer-cvslog] r26947 - trunk/libswscale/swscale.c

Dominik 'Rathann' Mierzejewski dominik at rangers.eu.org
Sun Jun 1 10:00:11 CEST 2008


On Sunday, 01 June 2008 at 05:34, bcoudurier wrote:
> Author: bcoudurier
> Date: Sun Jun  1 05:34:39 2008
> New Revision: 26947
> 
> Log:
> add const, suppress warnings
> 
> Modified:
>    trunk/libswscale/swscale.c
> 
> Modified: trunk/libswscale/swscale.c
> ==============================================================================
> --- trunk/libswscale/swscale.c	(original)
> +++ trunk/libswscale/swscale.c	Sun Jun  1 05:34:39 2008
> @@ -1848,7 +1848,7 @@ static int gray16swap(SwsContext *c, uin
>      int y=      srcSliceY;
>      int height= srcSliceH;
>      int i, j;
> -    uint16_t *srcPtr= src[0];
> +    uint16_t *srcPtr= (uint16_t*)src[0];

You're not adding "const" here, just casting.

Regards,
R.

-- 
MPlayer http://mplayerhq.hu | Livna http://rpm.livna.org
There should be a science of discontent. People need hard times and
oppression to develop psychic muscles.
	-- from "Collected Sayings of Muad'Dib" by the Princess Irulan



More information about the MPlayer-cvslog mailing list