Skip to content

Commit

Permalink
Fixes #371.
Browse files Browse the repository at this point in the history
Made a minor correction to the definition of the refpass_step macro
in the JPC codec.  The error that was corrected appears not to have
resulted in any incorrect code behavior, but it did negatively impact
code readability/understandability.
  • Loading branch information
mdadams committed Jan 20, 2024
1 parent ec76987 commit dfb28aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libjasper/jpc/jpc_t1enc.c
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,7 @@ static int jpc_encrawsigpass(jpc_bitstream_t *out, int bitpos, bool vcausalflag,

#define refpass_step(fp, dp, bitpos, one, nmsedec, mqenc, vcausalflag) \
{ \
jpc_fix_t d; \
if (((*(fp)) & (JPC_SIG | JPC_VISIT)) == JPC_SIG) { \
(d) = *(dp); \
*(nmsedec) += JPC_GETREFNMSEDEC(JAS_ABS(d), (bitpos) + JPC_NUMEXTRABITS); \
Expand All @@ -618,7 +619,6 @@ static int jpc_encrefpass(jpc_mqenc_t *mqenc, int bitpos, jas_matrix_t *flags, c
{
int i;
int one;
int d;
jpc_fix_t *fstripestart;
jpc_fix_t *fvscanstart;
jpc_fix_t *fp;
Expand Down

0 comments on commit dfb28aa

Please sign in to comment.