aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mot-encoder.cpp2
1 files changed, 2 insertions, 0 deletions
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;
}