summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-04-23 15:08:56 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-04-23 15:08:56 +0200
commit7b4682cb88532d971a32cdaa6fc7c2b57c5a645a (patch)
treef849f96a1af9eaecda301fff9a410ec4e0e6a721
parenta7945969f843f864db802a820e249f6b668df3ae (diff)
downloadfdk-aac-7b4682cb88532d971a32cdaa6fc7c2b57c5a645a.tar.gz
fdk-aac-7b4682cb88532d971a32cdaa6fc7c2b57c5a645a.tar.bz2
fdk-aac-7b4682cb88532d971a32cdaa6fc7c2b57c5a645a.zip
Convert slide filename extension to lower case
-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;
}