[Mplayer-cvslog] CVS: main/libmpcodecs vf_scale.c,1.18,1.19

Arpi arpi at thot.banki.hu
Thu Jul 18 16:43:02 CEST 2002


Hi,

> +    if(vf->priv->h==-3) vf->priv->h=vf->priv->w*height/width; else
> +    if(vf->priv->h==-2) vf->priv->h=vf->priv->w*d_height/d_width;
> +    break;
> +    }
>      if(vf->priv->w<0) vf->priv->w=width; else
>      if(vf->priv->w==0) vf->priv->w=d_width;
>      
> -    if(vf->priv->h==-3) vf->priv->h=vf->priv->w*height/width; else
> -    if(vf->priv->h==-2) vf->priv->h=vf->priv->w*d_height/d_width;

you shouldn't chaneg the order of those if()'s !

and, why didn't you put just the rounding into the switc(){ .. } and left
the others before it?


A'rpi / Astral & ESP-team

--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu



More information about the MPlayer-cvslog mailing list