Commit 891a9eb0 for libheif

commit 891a9eb06c56f75fc5211233d8effb1cdaf47122
Author: Dirk Farin <dirk.farin@gmail.com>
Date:   Tue Feb 3 19:45:26 2026 +0100

    copy all security limits

diff --git a/examples/heif_dec.cc b/examples/heif_dec.cc
index 14cbaa3c..f659c56a 100644
--- a/examples/heif_dec.cc
+++ b/examples/heif_dec.cc
@@ -240,7 +240,7 @@ int decode_single_image(heif_image_handle* handle,
   int bit_depth = heif_image_handle_get_luma_bits_per_pixel(handle);
   if (bit_depth < 0) {
     std::cerr << "Input image has undefined bit-depth\n";
-    return 1;
+    //return 1;
   }

   int has_alpha = heif_image_handle_has_alpha_channel(handle);
diff --git a/libheif/context.cc b/libheif/context.cc
index a1bcc268..4787837c 100644
--- a/libheif/context.cc
+++ b/libheif/context.cc
@@ -143,9 +143,15 @@ static void copy_security_limits(heif_security_limits* dst, const heif_security_
   dst->max_children_per_box = src->max_children_per_box;

   if (src->version >= 2) {
+    dst->max_total_memory = src->max_total_memory;
     dst->max_sample_description_box_entries = src->max_sample_description_box_entries;
     dst->max_sample_group_description_box_entries = src->max_sample_group_description_box_entries;
   }
+
+  if (src->version >= 3) {
+    dst->max_sequence_frames = src->max_sequence_frames;
+    dst->max_number_of_file_brands = src->max_number_of_file_brands;
+  }
 }