[CinCV TNG] [PATCH] Use jpeglib to decode and encode jpeg images

Johannes Sixt j6t at kdbg.org
Mon Jul 10 19:09:26 CEST 2017

Am 09.07.2017 um 20:27 schrieb Einar R√ľnkaru:
> Supports libjpeg versions 6.2 - 8
> Does not depend on quicktime any more
> Fixes crash on some jpeg samples

> +	jpeg_decompress.output_width = work_frame->get_w();
> +	jpeg_decompress.output_height = work_frame->get_h();
> +
> +	jpeg_read_header(&jpeg_decompress, TRUE);
> +	jpeg_start_decompress(&jpeg_decompress);

Ahem. I thought, output_width and output_height are results of 
jpeg_read_header(). What do you expect when you set them in advance? Do 
you expect that jpeglib rescales the image when it decompresses it?

Other than that, the patch looks reasonable. I did not compile it, though.

-- Hannes

More information about the Cinelerra mailing list