Mercurial > hg > dmlib
diff tools/gfxconv.c @ 1591:3cc7b2aadda3
Add inline helper function fmtGetEncDecOp() and use it.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 14 May 2018 05:53:22 +0300 |
parents | ca087c0cc9c4 |
children | d91d2a67eda5 |
line wrap: on
line diff
--- a/tools/gfxconv.c Mon May 14 05:38:58 2018 +0300 +++ b/tools/gfxconv.c Mon May 14 05:53:22 2018 +0300 @@ -1024,7 +1024,7 @@ for (int i = 0; i < D64_MAX_ENCDEC_OPS; i++) { - const DMC64EncDecOp *op = &dstFmt->encdecOps[i]; + const DMC64EncDecOp *op = fmtGetEncDecOp(dstFmt, i); size_t size; // Check for last operator