From 75320be30e3598be818ff6845225b401a52d42c2 Mon Sep 17 00:00:00 2001 From: Stefan Pöschel Date: Mon, 27 Jun 2016 14:17:13 +0200 Subject: MOT encoder: fix broken Slideshow by last commit --- src/mot-encoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mot-encoder.cpp b/src/mot-encoder.cpp index 7737230..8d8d9ce 100644 --- a/src/mot-encoder.cpp +++ b/src/mot-encoder.cpp @@ -1268,7 +1268,7 @@ int encodeFile(int output_fd, std::string& fname, int fidx, bool raw_slides) } // copy the file into the buffer: - if (fread(blob, blobsize, 1, pFile) != blobsize) { + if (fread(blob, blobsize, 1, pFile) != 1) { fprintf(stderr, "mot-encoder Error: Could not read file\n"); goto encodefile_out; } -- cgit v1.2.3