Skip to content

Commit 45bc2e9

Browse files
committed
Consistently use adjusted local cropLeft computed earlier
1 parent cfd9a8e commit 45bc2e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libsrc/utils/ImageResampler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ void ImageResampler::processImage(const uint8_t * data, int width, int height, s
254254
{
255255
int uOffset = width * height + ySource * (width/2);
256256
int vOffset = (width * height) + (width * height / 2) + ySource * (width/2);
257-
for (int xDest = xDestStart, xSource = _cropLeft + (_horizontalDecimation >> 1); xDest <= xDestEnd; xSource += _horizontalDecimation, ++xDest)
257+
for (int xDest = xDestStart, xSource = cropLeft + (_horizontalDecimation >> 1); xDest <= xDestEnd; xSource += _horizontalDecimation, ++xDest)
258258
{
259259
ColorRgb & rgb = outputImage(abs(xDest), abs(yDest));
260260
uint8_t y = data[lineLength * ySource + xSource];

0 commit comments

Comments
 (0)