You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
465 B

  1. --- a/jdmarker.c
  2. +++ b/jdmarker.c
  3. @@ -342,6 +342,12 @@ get_sos (j_decompress_ptr cinfo)
  4. TRACEMS3(cinfo, 1, JTRC_SOS_COMPONENT, cc,
  5. compptr->dc_tbl_no, compptr->ac_tbl_no);
  6. +
  7. + /* This CSi (cc) should differ from the previous CSi */
  8. + for (ci = 0; ci < i; ci++) {
  9. + if (cinfo->cur_comp_info[ci] == compptr)
  10. + ERREXIT1(cinfo, JERR_BAD_COMPONENT_ID, cc);
  11. + }
  12. }
  13. /* Collect the additional scan parameters Ss, Se, Ah/Al. */