diff options
| author | Tim-Philipp Müller <tim@centricular.net> | 2006-05-17 11:20:44 +0000 | 
|---|---|---|
| committer | Tim-Philipp Müller <tim@centricular.net> | 2006-05-17 11:20:44 +0000 | 
| commit | d35441766ffa29e6298079d61630b652d2d64971 (patch) | |
| tree | 5c87714e4477846fab522372c308561795a58344 | |
| parent | 14ea3f13a47948e320903f6e96d0d646775b1bca (diff) | |
ext/jpeg/gstjpegdec.c: Fix crash when outputting debugging information for certain pictures (always good to use the r...
Original commit message from CVS:
* ext/jpeg/gstjpegdec.c: (gst_jpeg_dec_chain):
Fix crash when outputting debugging information for certain
pictures (always good to use the right struct member for
the number of records in an array).
| -rw-r--r-- | ChangeLog | 7 | ||||
| -rw-r--r-- | ext/jpeg/gstjpegdec.c | 2 | 
2 files changed, 8 insertions, 1 deletions
@@ -1,3 +1,10 @@ +2006-05-17  Tim-Philipp Müller  <tim at centricular dot net> + +	* ext/jpeg/gstjpegdec.c: (gst_jpeg_dec_chain): +	  Fix crash when outputting debugging information for certain +	  pictures (always good to use the right struct member for +	  the number of records in an array). +  2006-05-16  Tim-Philipp Müller  <tim at centricular dot net>  	Patch by: Jindrich Makovicka  <jindrich.makivicka at itonis tv> diff --git a/ext/jpeg/gstjpegdec.c b/ext/jpeg/gstjpegdec.c index 55704f68..349b8a54 100644 --- a/ext/jpeg/gstjpegdec.c +++ b/ext/jpeg/gstjpegdec.c @@ -774,7 +774,7 @@ gst_jpeg_dec_chain (GstPad * pad, GstBuffer * buf)    GST_DEBUG ("num_components=%d, comps_in_scan=%d\n",        dec->cinfo.num_components, dec->cinfo.comps_in_scan); -  for (i = 0; i < dec->cinfo.num_components; ++i) { +  for (i = 0; i < dec->cinfo.comps_in_scan; ++i) {      GST_DEBUG ("[%d] h_samp_factor=%d, v_samp_factor=%d\n", i,          dec->cinfo.cur_comp_info[i]->h_samp_factor,          dec->cinfo.cur_comp_info[i]->v_samp_factor);  | 
