[MPlayer-dev-eng] -vop scale

Arpi arpi at thot.banki.hu
Wed Jul 17 21:54:54 CEST 2002


Hi,

> +    case IMGFMT_YUY2:		/* YUY2 needs w rounded to 2 */
> +	if(vf->priv->w==-3) vf->priv->w=(int)((double)vf->priv->h*w
> idth/height/2+0.5)*2; else

it should be (vf->priv->h*width/height+1)&(~1) instead of using double/float


A'rpi / Astral & ESP-team

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



More information about the MPlayer-dev-eng mailing list