summaryrefslogtreecommitdiff
path: root/jpeg
diff options
context:
space:
mode:
Diffstat (limited to 'jpeg')
-rw-r--r--jpeg/jidctint.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/jpeg/jidctint.c b/jpeg/jidctint.c
index 360306b67..8881a8f22 100644
--- a/jpeg/jidctint.c
+++ b/jpeg/jidctint.c
@@ -4956,6 +4956,8 @@ jpeg_idct_4x8 (j_decompress_ptr cinfo, jpeg_component_info * compptr,
*/
z2 = DEQUANTIZE(inptr[DCTSIZE*0], quantptr[DCTSIZE*0]);
+ if (ctr == 4)
+ CLAMP_DC(z2);
z3 = DEQUANTIZE(inptr[DCTSIZE*4], quantptr[DCTSIZE*4]);
z2 <<= CONST_BITS;
z3 <<= CONST_BITS;