[MPlayer-dev-eng] SwScaler bug

Arpi arpi at thot.banki.hu
Mon Apr 8 00:15:04 CEST 2002


Hi,

> Hi
> 
> On Sunday 07 April 2002 23:41, Arpi wrote:
> [...]
> > scale: query(BGR 32-bit) -> 3
> > A:   0.1 V:   0.0 A-V:  0.105 ct:  0.000    1/  1   0%  0%  0.0% 0 0 0%
> > SwScale scaling 640x480 Planar YV12 to -1x-1 BGR 32-bit
>                                          ^^^^^
> bug, either u print nonsense or its trying to scale to -1x-1 which isnt 
> supported yet

argh
just explained this to atmos in 10+ lines...

it was a bug of printf, nothing with swscaler!
it get 640x480

old code:

    printf("SwScale scaling %dx%d %s to %dx%d %s  \n",
        width,height,vo_format_name(outfmt),
        vf->priv->w,vf->priv->h,vo_format_name(best));
    if(vf->priv->w<=0) vf->priv->w=width;
    if(vf->priv->h<=0) vf->priv->h=height;
    swscale...

fixed:

    if(vf->priv->w<=0) vf->priv->w=width;
    if(vf->priv->h<=0) vf->priv->h=height;
    printf("SwScale scaling %dx%d %s to %dx%d %s  \n",
        width,height,vo_format_name(outfmt),
        vf->priv->w,vf->priv->h,vo_format_name(best));
    swscale...

please try to fix teh bug instead of reading buggy printf out


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