diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-28 22:24:24 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-28 22:24:24 +0100 |
| commit | a1403c2e2e71c6252d97abf9ddca421ce925d456 (patch) | |
| tree | 99fec7106924d5f74d02ee6d9a935b8b04889f36 /src/lib/openjp2/j2k.c | |
| parent | 585b84a5d409f6b98f17e15c41ea6d7c21c2a773 (diff) | |
Allow configuration of the number of guard bits when encoding.
Diffstat (limited to 'src/lib/openjp2/j2k.c')
| -rw-r--r-- | src/lib/openjp2/j2k.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/openjp2/j2k.c b/src/lib/openjp2/j2k.c index a08fc518..ac40e39d 100644 --- a/src/lib/openjp2/j2k.c +++ b/src/lib/openjp2/j2k.c @@ -7287,7 +7287,7 @@ OPJ_BOOL opj_j2k_setup_encoder(opj_j2k_t *p_j2k, tccp->qmfbid = parameters->irreversible ? 0 : 1; tccp->qntsty = parameters->irreversible ? J2K_CCP_QNTSTY_SEQNT : J2K_CCP_QNTSTY_NOQNT; - tccp->numgbits = 2; + tccp->numgbits = parameters->numgbits; if ((OPJ_INT32)i == parameters->roi_compno) { tccp->roishift = parameters->roi_shift; |
