Fix comparaison.

escl-error-read-jpeg
thierry1970 2020-03-04 16:52:16 +01:00
rodzic 2c7bd3ac27
commit c66cdfb4ae
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -236,7 +236,7 @@ get_JPEG_data(capabilities_t *scanner, int *width, int *height, int *bps)
*height = h;
*bps = cinfo.output_components;
// If the image is not completely read!
if (scanner->height(unsigned int) < cinfo.output_height)
if (cinfo.output_height > (unsigned int)scanner->height)
jpeg_abort_decompress(&cinfo);
else
jpeg_finish_decompress(&cinfo);