Skip to content

Commit

Permalink
Fix wrong assignment: The flag TRELLIS_Q_OPT sets the parameter JBOOL…
Browse files Browse the repository at this point in the history
…EAN_TRELLIS_Q_OPT instead of JBOOLEAN_TRELLIS_QUANT_DC. Fixes #18
  • Loading branch information
btlorch committed Oct 19, 2023
1 parent 0d39c08 commit 810b157
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jpeglib/cjpeglib/cjpeglib_spatial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ int write_jpeg_spatial(
if(overwrite_flag(flags, TRELLIS_Q_OPT)) {
jpeg_c_set_bool_param(
&cinfo,
JBOOLEAN_TRELLIS_QUANT_DC,
JBOOLEAN_TRELLIS_Q_OPT,
flag_is_set(flags, TRELLIS_Q_OPT)
);
}
Expand Down

0 comments on commit 810b157

Please sign in to comment.