Revision 911406f2 libswscale/swscale.c

View differences:

libswscale/swscale.c
2050 2050
	c->chrIntHSubSample= c->chrDstHSubSample;
2051 2051
	c->chrIntVSubSample= c->chrSrcVSubSample;
2052 2052

  
2053
	// note the -((-x)>>y) is so that we allways round toward +inf
2053
	// Note the -((-x)>>y) is so that we always round toward +inf.
2054 2054
	c->chrSrcW= -((-srcW) >> c->chrSrcHSubSample);
2055 2055
	c->chrSrcH= -((-srcH) >> c->chrSrcVSubSample);
2056 2056
	c->chrDstW= -((-dstW) >> c->chrDstHSubSample);

Also available in: Unified diff