summaryrefslogtreecommitdiff
path: root/src/jpeg.c
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-06-29 18:59:45 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-06-29 18:59:45 +0200
commit3d56a7fc6ed2fd52b7da2fc4209233cbbc04c761 (patch)
tree32a87b1b2d938e387217dd0a5d760d31410a1b4c /src/jpeg.c
parent2bd7d5e9376d920eed6859332163334c15de4b9d (diff)
use IMAGE_MAX_AREA instead of IMAGE_MAX_W and IMAGE_MAX_H
Diffstat (limited to 'src/jpeg.c')
-rw-r--r--src/jpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jpeg.c b/src/jpeg.c
index 4a5f4118..b73a1672 100644
--- a/src/jpeg.c
+++ b/src/jpeg.c
@@ -282,7 +282,7 @@ static void Jpeg_write(DilloJpeg *jpeg, void *Buf, uint_t BufSize)
/* check max image size */
if (jpeg->cinfo.image_width <= 0 || jpeg->cinfo.image_height <= 0 ||
jpeg->cinfo.image_width >
- (IMAGE_MAX_W * IMAGE_MAX_H) / jpeg->cinfo.image_height) {
+ IMAGE_MAX_AREA / jpeg->cinfo.image_height) {
MSG("Jpeg_write: suspicious image size request %ux%u\n",
(uint_t)jpeg->cinfo.image_width,
(uint_t)jpeg->cinfo.image_height);