diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-08-30 17:24:49 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-08-30 17:27:10 +0100 |
commit | 9554853ad7c80e1edf853859dbb65d419e16ea66 (patch) | |
tree | d17c37c1e908fd1b5b6a3e2c28d30f80a9d54a15 /vcl | |
parent | 196328c91ee889a0a1cbc39ce2549c7405afbef5 (diff) |
allow building with older libjpeg again
we don't really care what the error number is, so long as its an error of some
kind so just sed JERR_BAD_CROP_SPEC to JERR_CONVERSION_NOTIMPL
Change-Id: Iae41de7b720ce2e60c7092d15983aa1c4ba14c89
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/filter/jpeg/transupp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/filter/jpeg/transupp.c b/vcl/source/filter/jpeg/transupp.c index 33da62354d8d..4cae59ead666 100644 --- a/vcl/source/filter/jpeg/transupp.c +++ b/vcl/source/filter/jpeg/transupp.c @@ -1006,7 +1006,7 @@ jtransform_request_workspace (j_decompress_ptr srcinfo, info->crop_yoffset = 0; /* default to +0 */ if (info->crop_xoffset >= info->output_width || info->crop_yoffset >= info->output_height) - ERREXIT(srcinfo, JERR_BAD_CROP_SPEC); + ERREXIT(srcinfo, JERR_CONVERSION_NOTIMPL); if (info->crop_width_set == JCROP_UNSET) info->crop_width = info->output_width - info->crop_xoffset; if (info->crop_height_set == JCROP_UNSET) @@ -1016,7 +1016,7 @@ jtransform_request_workspace (j_decompress_ptr srcinfo, info->crop_height <= 0 || info->crop_height > info->output_height || info->crop_xoffset > info->output_width - info->crop_width || info->crop_yoffset > info->output_height - info->crop_height) - ERREXIT(srcinfo, JERR_BAD_CROP_SPEC); + ERREXIT(srcinfo, JERR_CONVERSION_NOTIMPL); /* Convert negative crop offsets into regular offsets */ if (info->crop_xoffset_set == JCROP_NEG) xoffset = info->output_width - info->crop_width - info->crop_xoffset; |