Skip to content
Snippets Groups Projects
Commit ede978a7 authored by Junqi Liao's avatar Junqi Liao
Browse files

fix padding

parent 20d7178e
No related branches found
No related tags found
No related merge requests found
......@@ -520,10 +520,9 @@ static bool readPlane(Pel *dst, std::istream &fd, bool is16bit, ptrdiff_t stride
}
// process right hand side padding
const Pel val = dst[widthDest - 1];
for (uint32_t x = widthDest; x < fullWidthDest; x++)
for (uint32_t x = width_dest; x < full_width_dest; x++)
{
pDstBuf[x] = val;
pDstBuf[x] = pDstBuf[width_dest-1];
}
pDstBuf += dstBufStride;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment