/* Finish up at the end of a Huffman-compressed scan.  */
finish_pass_huff(j_decompress_ptr cinfo)
/* Finish up at the end of a Huffman-compressed scan.  */
finish_pass_huff(j_decompress_ptr cinfo)
{
  huff_entropy_ptr entropy = (huff_entropy_ptr) cinfo->entropy;
  cinfo->marker->discarded_bytes += entropy->bitstate.bits_left / 8;
  entropy->bitstate.bits_left = 0;
}