Skip to content

Commit 45fb062

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 32590ba commit 45fb062

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

Tests/test_file_jpeg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ def _n_qtables_helper(n: int, test_file: str) -> None:
625625
qtable_from_quality = self.roundtrip(im, quality=quality).quantization
626626

627627
assert qtable_from_qtable_quality == qtable_from_quality
628-
628+
629629
# list of qtable lists
630630
assert_image_similar(
631631
im,

src/libImaging/JpegEncode.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,11 @@ ImagingJpegEncode(Imaging im, ImagingCodecState state, UINT8 *buf, int bytes) {
196196
// jpeg_set_defaults created two qtables internally, but we only
197197
// wanted one.
198198
jpeg_add_quant_table(
199-
&context->cinfo, 1, &context->qtables[0], scale_factor, force_baseline
199+
&context->cinfo,
200+
1,
201+
&context->qtables[0],
202+
scale_factor,
203+
force_baseline
200204
);
201205
}
202206
for (i = last_q; i < context->cinfo.num_components; i++) {

0 commit comments

Comments
 (0)