Skip to content

Commit

Permalink
tests: show error message when encoding failed
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Nov 7, 2024
1 parent 9664776 commit caec52f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/extended_type.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ TEST_CASE("make extended type") {

err = heif_context_encode_image(ctx, input_image, encoder, nullptr, &output_image_handle);
INFO("error message: " << err.message);
REQUIRE(err.code+1 == heif_error_Ok);
REQUIRE(err.code == heif_error_Ok);

heif_item_id itemId;
err = heif_context_get_primary_image_ID(ctx, &itemId);
Expand Down

0 comments on commit caec52f

Please sign in to comment.