diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-04-23 15:08:56 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-04-23 15:08:56 +0200 |
commit | 7b4682cb88532d971a32cdaa6fc7c2b57c5a645a (patch) | |
tree | f849f96a1af9eaecda301fff9a410ec4e0e6a721 | |
parent | a7945969f843f864db802a820e249f6b668df3ae (diff) | |
download | ODR-AudioEnc-7b4682cb88532d971a32cdaa6fc7c2b57c5a645a.tar.gz ODR-AudioEnc-7b4682cb88532d971a32cdaa6fc7c2b57c5a645a.tar.bz2 ODR-AudioEnc-7b4682cb88532d971a32cdaa6fc7c2b57c5a645a.zip |
Convert slide filename extension to lower case
-rw-r--r-- | src/mot-encoder.cpp | 2 |
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; } |