From 7dcd299389559315ce7e5accf6f90d5c09482075 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(-) (limited to 'src') 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