Commit 74b9b292 for libheif

commit 74b9b2925393e9a205c6923207bfe7ea9fe1200d
Author: Dirk Farin <dirk.farin@gmail.com>
Date:   Fri Feb 20 23:37:17 2026 +0100

    heif-enc: only include TIFF loader if libtiff found

diff --git a/examples/heif_enc.cc b/examples/heif_enc.cc
index 3dfd2404..99f04454 100644
--- a/examples/heif_enc.cc
+++ b/examples/heif_enc.cc
@@ -699,17 +699,18 @@ InputImage load_image(const std::string& input_filename, int output_bit_depth)
   if (filetype == PNG) {
     heif_error err = loadPNG(input_filename.c_str(), output_bit_depth, &input_image);
     if (err.code != heif_error_Ok) {
-      std::cerr << "Can not load TIFF input image: " << err.message << '\n';
+      std::cerr << "Can not load PNG input image: " << err.message << '\n';
       exit(1);
     }
   }
   else if (filetype == Y4M) {
     heif_error err = loadY4M(input_filename.c_str(), &input_image);
     if (err.code != heif_error_Ok) {
-      std::cerr << "Can not load TIFF input image: " << err.message << '\n';
+      std::cerr << "Can not load Y4M input image: " << err.message << '\n';
       exit(1);
     }
   }
+#if HAVE_LIBTIFF
   else if (filetype == TIFF) {
     heif_error err = loadTIFF(input_filename.c_str(), output_bit_depth, &input_image);
     if (err.code != heif_error_Ok) {
@@ -717,6 +718,7 @@ InputImage load_image(const std::string& input_filename, int output_bit_depth)
       exit(1);
     }
   }
+#endif
   else {
     heif_error err = loadJPEG(input_filename.c_str(), &input_image);
     if (err.code != heif_error_Ok) {