Mercurial > hg > dmlib
changeset 2407:c5a32812dd97
Oops, forgot to set up the DMC64EncDecCtx::buf to point to the correct
DMGrowBuf (source or destination) in dmC64EncodeGenericBMP() and
dmC64DecodeGenericBMP(). Fixed.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 13 Jan 2020 21:16:57 +0200 |
parents | b153bc46241d |
children | 60e119262c67 |
files | tools/lib64gfx.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/lib64gfx.c Mon Jan 13 20:30:23 2020 +0200 +++ b/tools/lib64gfx.c Mon Jan 13 21:16:57 2020 +0200 @@ -914,6 +914,7 @@ return DMERR_NULLPTR; dmC64SetupImageData(img, fmt); + ctx.buf = buf; // Perform decoding for (ctx.opn = 0; ctx.opn < D64_MAX_ENCDEC_OPS; ctx.opn++) @@ -1117,6 +1118,8 @@ "Buffer specified for dmC64EncodeGenericBMP() is in backwards mode, which is not supported.\n"); } + ctx.buf = buf; + // Perform encoding for (ctx.opn = 0; ctx.opn < D64_MAX_ENCDEC_OPS; ctx.opn++) {