From 15c0876191b927cbe4d797b9ef89b51b08a12cc2 Mon Sep 17 00:00:00 2001 From: DRC Date: Mon, 10 Mar 2014 20:11:56 +0000 Subject: [PATCH] Fix additional uninitialized values reported by valgrind git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1144 632fc199-4ca6-4c93-a231-07263d6284db --- turbojpeg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/turbojpeg.c b/turbojpeg.c index 8ccb15e..41c8aac 100644 --- a/turbojpeg.c +++ b/turbojpeg.c @@ -1261,6 +1261,7 @@ static int setDecodeDefaults(struct jpeg_decompress_struct *dinfo, compptr->h_samp_factor=(i==0)? tjMCUWidth[subsamp]/8:1; compptr->v_samp_factor=(i==0)? tjMCUHeight[subsamp]/8:1; compptr->component_index=i; + compptr->component_id=i+1; compptr->quant_tbl_no=compptr->dc_tbl_no=compptr->ac_tbl_no= (i==0)? 0:1; dinfo->cur_comp_info[i]=compptr; -- 2.40.0