diff --git a/libheif/codecs/decoder.cc b/libheif/codecs/decoder.cc index 6e9ecbea76..4f15abd4e2 100644 --- a/libheif/codecs/decoder.cc +++ b/libheif/codecs/decoder.cc @@ -136,7 +136,7 @@ std::shared_ptr Decoder::alloc_for_infe_type(const ImageItem* item) } #endif case fourcc("evc1"): { - auto evcC = ctx->get_heif_file()->get_property(id); + auto evcC = item->get_property(); return std::make_shared(evcC); } case fourcc("mski"): { diff --git a/tests/evc_box.cc b/tests/evc_box.cc index fa5306f0cd..d8212f4201 100644 --- a/tests/evc_box.cc +++ b/tests/evc_box.cc @@ -24,7 +24,7 @@ SOFTWARE. */ -#include "catch.hpp" +#include "catch_amalgamated.hpp" #include "codecs/evc_boxes.h" #include "error.h" #include