From 7b4682cb88532d971a32cdaa6fc7c2b57c5a645a Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Thu, 23 Apr 2015 15:08:56 +0200 Subject: Convert slide filename extension to lower case --- src/mot-encoder.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mot-encoder.cpp') diff --git a/src/mot-encoder.cpp b/src/mot-encoder.cpp index 71e4e09..0fd8859 100644 --- a/src/mot-encoder.cpp +++ b/src/mot-encoder.cpp @@ -758,6 +758,8 @@ int encodeFile(int output_fd, std::string& fname, int fidx, int padlen, bool raw if (last_dot != std::string::npos) { std::string file_extension = fname.substr(last_dot, std::string::npos); + std::transform(file_extension.begin(), file_extension.end(), file_extension.begin(), ::tolower); + if (file_extension == ".png") { jfif_not_png = false; } -- cgit v1.2.3