From 9b21beac6c40103aaf294f210445015c6a0b8e50 Mon Sep 17 00:00:00 2001 From: Stefan Pöschel Date: Sun, 6 Dec 2015 17:36:57 +0100 Subject: MOT encoder: fix MAXSLIDESIZE corner case --- src/mot-encoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3