Revision f6cf4ed0 libswscale/swscale.c

View differences:

libswscale/swscale.c
1989 1989
        int y=      plane==0 ? srcSliceY: -((-srcSliceY)>>c->chrDstVSubSample);
1990 1990
        int height= plane==0 ? srcSliceH: -((-srcSliceH)>>c->chrDstVSubSample);
1991 1991

  
1992
        if ((isGray(c->srcFormat) || isGray(c->dstFormat)) && plane>0)
1993
        {
1994
            if (!isGray(c->dstFormat))
1992
        if (dst[plane] && !src[plane])
1995 1993
                fillPlane(dst[plane], dstStride[plane], length, height, y, 128);
1996
        }
1997 1994
        else
1998 1995
        {
1999 1996
            if (dstStride[plane]==srcStride[plane] && srcStride[plane] > 0)

Also available in: Unified diff