summaryrefslogtreecommitdiff
path: root/libopenjpeg/mqc.h
diff options
context:
space:
mode:
Diffstat (limited to 'libopenjpeg/mqc.h')
-rw-r--r--libopenjpeg/mqc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libopenjpeg/mqc.h b/libopenjpeg/mqc.h
index a3d44b01..d3c0c5c8 100644
--- a/libopenjpeg/mqc.h
+++ b/libopenjpeg/mqc.h
@@ -116,7 +116,7 @@ Set the current context used for coding/decoding
@param mqc MQC handle
@param ctxno Number that identifies the context
*/
-void mqc_setcurctx(opj_mqc_t *mqc, int ctxno);
+#define mqc_setcurctx(mqc, ctxno) (mqc)->curctx = &(mqc)->ctxs[(int)(ctxno)]
/**
Encode a symbol using the MQ-coder
@param mqc MQC handle