commit df94694605f68894e8080966603470c059c1f9f1
parent 0ca36fcba0c0023cc7316a35b4aaf81e5d2afcac
Author: MTRNord <mtrnord1@gmail.com>
Date: Sun, 10 Nov 2024 19:06:07 +0100
Fix libheif and make sure we also support uppercase heic files
Diffstat:
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/build-aux/libheif.json b/build-aux/libheif.json
@@ -10,7 +10,10 @@
"-DWITH_X265=0",
"-DWITH_RAV1E=0",
"-DWITH_AOM=0",
- "-DWITH_DAV1D=0"
+ "-DWITH_DAV1D=0",
+ "-DCMAKE_COMPILE_WARNING_AS_ERROR=OFF",
+ "-DENABLE_PLUGIN_LOADING=OFF",
+ "-DWITH_OpenH264_DECODER=OFF"
],
"sources": [
{
diff --git a/src/conversion_worker.rs b/src/conversion_worker.rs
@@ -87,7 +87,11 @@ impl ConversionWorker {
let entry = entry.ok()?;
let path = entry.path();
info!("Checking file {:?}", path);
- if path.is_file() && path.extension().map_or(false, |ext| ext == "heic") {
+ if path.is_file()
+ && path
+ .extension()
+ .map_or(false, |ext| ext.eq_ignore_ascii_case("heic"))
+ {
Some(path.to_path_buf())
} else {
None