rem: gint    ny_width = (oy_width * image->scale_factor) / 32768; gint    nu_width = (ou_width * image->scale_factor) / 32768; gint    nv_width = (ov_width * image->scale_factor) / 32768;
add: int    ny_width = (oy_width * image->scale_factor) / 32768; int    nu_width = (ou_width * image->scale_factor) / 32768; int    nv_width = (ov_width * image->scale_factor) / 32768;
context: scale_image (struct prvt_image_s *image){    gint    i;    gint    step = 1;		/* unused variable for the scale functions */    /*     * pointers for post-scaled line buffer      */    guchar *n_y;    guchar *n_u;    guchar *n_v;    /*     * pointers into pre-scaled line buffers      */    guchar *oy = image->y;    guchar *ou = image->u;    guchar *ov = image->v;    guchar *oy_p = image->y;    guchar *ou_p = image->u;    guchar *ov_p = image->v;    /*     * pointers into post-scaled line buffers      */    guchar *ny_p;    guchar *nu_p;    guchar *nv_p;    /*     * old line widths      */    gint    oy_width = image->width;    gint    ou_width = image->u_width;    gint    ov_width = image->v_width;    /*     * new line widths NB scale factor is factored by 32768 for rounding      */    gint    ny_width = (oy_width * image->scale_factor) / 32768;    gint    nu_width = (ou_width * image->scale_factor) / 32768;    gint    nv_width = (ov_width * image->scale_factor) / 32768;    /*     * allocate new buffer space space for post-scaled line buffers      */    n_y = g_malloc (ny_width * image->height);    if (!n_y)	return 0;    n_u = g_malloc (nu_width * image->u_height);    if (!n_u)	return 0;    n_v = g_malloc (nv_width * image->v_height);    if (!n_v)	return 0;    /*     * set post-scaled line buffer progress pointers      */    ny_p = n_y;    nu_p = n_u;    nv_p = n_v;    /*     * Do the scaling      */    for (i = 0; i < image->height; ++i)    {	image->scale_line (oy_p, ny_p, ny_width, step);	oy_p += oy_width;	ny_p += ny_width;    }    for (i = 0; i < image->u_height; ++i)    {	image->scale_line (ou_p, nu_p, nu_width, step);	ou_p += ou_width;	nu_p += nu_width;    }    for (i = 0; i < image->v_height; ++i)    {	image->scale_line (ov_p, nv_p, nv_width, step);	ov_p += ov_width;	nv_p += nv_width;    }    /*     * switch to post-scaled data and widths      */    image->y = n_y;    image->u = n_u;    image->v = n_v;    image->width = ny_width;    image->u_width = nu_width;    image->v_width = nv_width;    if (image->yuy2)    {	g_free (oy);	g_free (ou);	g_free (ov);    }    return 1;}