aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Pöschel <github@basicmaster.de>2015-12-06 17:36:57 +0100
committerStefan Pöschel <github@basicmaster.de>2015-12-06 17:36:57 +0100
commit2e448a947f0068ead07ff82cc8905f7a4a68da33 (patch)
treeb16b6bd52995fc634777c411e1b44ff528f07d6b
parent793986c446912e376f300e56f5734f6413de23a5 (diff)
downloadODR-PadEnc-2e448a947f0068ead07ff82cc8905f7a4a68da33.tar.gz
ODR-PadEnc-2e448a947f0068ead07ff82cc8905f7a4a68da33.tar.bz2
ODR-PadEnc-2e448a947f0068ead07ff82cc8905f7a4a68da33.zip
MOT encoder: fix MAXSLIDESIZE corner case
-rw-r--r--src/mot-encoder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mot-encoder.cpp b/src/mot-encoder.cpp
index d194709..f60ada8 100644
--- a/src/mot-encoder.cpp
+++ b/src/mot-encoder.cpp
@@ -1073,7 +1073,7 @@ int encodeFile(int output_fd, std::string& fname, int fidx, bool raw_slides)
// Don't recompress the image and check if the blobsize is suitable
blob = MagickGetImagesBlob(m_wand, &blobsize);
- if (blobsize < MAXSLIDESIZE) {
+ if (blobsize <= MAXSLIDESIZE) {
if (verbose) {
fprintf(stderr, "mot-encoder image: '%s' (id=%d). No resize needed: %zu Bytes\n",
fname.c_str(), fidx, blobsize);