1.1 --- a/src/share/native/sun/awt/image/jpeg/jdinput.c Thu Jul 02 12:02:08 2020 -0700 1.2 +++ b/src/share/native/sun/awt/image/jpeg/jdinput.c Fri Sep 11 16:12:45 2020 +0000 1.3 @@ -74,39 +74,6 @@ 1.4 compptr->v_samp_factor); 1.5 } 1.6 1.7 - /* Derive lim_Se */ 1.8 - if (cinfo->is_baseline || (cinfo->progressive_mode && 1.9 - cinfo->comps_in_scan)) { /* no pseudo SOS marker */ 1.10 - cinfo->lim_Se = DCTSIZE2-1; 1.11 - } else { 1.12 - switch (cinfo->Se) { 1.13 - case (1*1-1): 1.14 - case (2*2-1): 1.15 - case (3*3-1): 1.16 - case (4*4-1): 1.17 - case (5*5-1): 1.18 - case (6*6-1): 1.19 - case (7*7-1): 1.20 - cinfo->lim_Se = cinfo->Se; 1.21 - break; 1.22 - case (8*8-1): 1.23 - case (9*9-1): 1.24 - case (10*10-1): 1.25 - case (11*11-1): 1.26 - case (12*12-1): 1.27 - case (13*13-1): 1.28 - case (14*14-1): 1.29 - case (15*15-1): 1.30 - case (16*16-1): 1.31 - cinfo->lim_Se = DCTSIZE2-1; 1.32 - break; 1.33 - default: 1.34 - ERREXIT4(cinfo, JERR_BAD_PROGRESSION, 1.35 - cinfo->Ss, cinfo->Se, cinfo->Ah, cinfo->Al); 1.36 - break; 1.37 - } 1.38 - } 1.39 - 1.40 /* We initialize DCT_scaled_size and min_DCT_scaled_size to DCTSIZE. 1.41 * In the full decompressor, this will be overridden by jdmaster.c; 1.42 * but in the transcoder, jdmaster.c is not used, so we must do it here.