diff --git a/tests/extended_type.cc b/tests/extended_type.cc index aaf7e339de..b56bc07fa2 100644 --- a/tests/extended_type.cc +++ b/tests/extended_type.cc @@ -47,8 +47,8 @@ TEST_CASE("make extended type") { heif_image_handle *output_image_handle; err = heif_context_encode_image(ctx, input_image, encoder, nullptr, &output_image_handle); - if (err.message) { INFO("error message: " << err.message); } - REQUIRE(err.code == heif_error_Ok); + INFO("error message: " << err.message); + REQUIRE(err.code+1 == heif_error_Ok); heif_item_id itemId; err = heif_context_get_primary_image_ID(ctx, &itemId);