Originally committed as revision 29009 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
int y= plane==0 ? srcSliceY: -((-srcSliceY)>>c->chrDstVSubSample);
int height= plane==0 ? srcSliceH: -((-srcSliceH)>>c->chrDstVSubSample);
- if ((isGray(c->srcFormat) || isGray(c->dstFormat)) && plane>0)
- {
- if (!isGray(c->dstFormat))
+ if (dst[plane] && !src[plane])
fillPlane(dst[plane], dstStride[plane], length, height, y, 128);
- }
else
{
if (dstStride[plane]==srcStride[plane] && srcStride[plane] > 0)