[PATCH weston 1/2] wcap: Declare variable with same sign as convert_to_yv12() expects.

Kristian Høgsberg hoegsberg at gmail.com
Mon Jul 23 07:47:40 PDT 2012


On Sun, Jul 22, 2012 at 06:23:51PM -0600, Scott Moreau wrote:
> ---
>  wcap/main.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Thanks, applied.  The bigger problem here was that we didn't include
$(GCC_CFLAGS) in wcap_decode_CFLAGS.  There's a few more warnings that
show up once we enable that, I've fixed them in a follow-on commit.

Kristian

> diff --git a/wcap/main.c b/wcap/main.c
> index bdbc8cb..09e0aa7 100644
> --- a/wcap/main.c
> +++ b/wcap/main.c
> @@ -132,7 +132,7 @@ convert_to_yv12(struct wcap_decoder *decoder, unsigned char *out)
>  static void
>  output_yuv_frame(struct wcap_decoder *decoder)
>  {
> -	static char *out;
> +	static unsigned char *out;
>  	int size;
>  
>  	size = decoder->width * decoder->height * 3 / 2;
> -- 
> 1.7.10.4
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list