Skip to content

Commit

Permalink
fix compilation of color-conversion-fuzzer
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Nov 16, 2024
1 parent 72f1793 commit 5f414da
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions fuzzing/color_conversion_fuzzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -256,16 +256,15 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
nullptr,
output_bpp,
options->color_conversion_options);
assert(out_image_result);
auto out_image = *out_image_result;

heif_encoding_options_free(options);

if (!out_image) {
if (out_image_result.error) {
// Conversion is not supported.
return 0;
}

auto out_image = *out_image_result;

heif_encoding_options_free(options);

assert(out_image->get_width() == width);
assert(out_image->get_height() == height);
assert(out_image->get_chroma_format() ==
Expand Down

0 comments on commit 5f414da

Please sign in to comment.