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 | 9ccccba066ec6627564f2d364d8d2aac13e6cc1f (patch) | |
tree | 0fe12440b4fd237d02f85cebb423fd30c06bb0ac | |
parent | e5a8e88b8104442eea8b4782c84d7e20007a9498 (diff) | |
download | ODR-PadEnc-9ccccba066ec6627564f2d364d8d2aac13e6cc1f.tar.gz ODR-PadEnc-9ccccba066ec6627564f2d364d8d2aac13e6cc1f.tar.bz2 ODR-PadEnc-9ccccba066ec6627564f2d364d8d2aac13e6cc1f.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; } |