Skip to content

Commit

Permalink
speculative fix for iden linting problem
Browse files Browse the repository at this point in the history
  • Loading branch information
bradh committed Jan 17, 2024
1 parent f9b2897 commit 22a3227
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libheif/file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ Error HeifFile::parse_heif_file(BitstreamRange& range)
m_iref_box = std::dynamic_pointer_cast<Box_iref>(m_meta_box->get_child_box(fourcc("iref")));
if (m_iref_box) {
Error error = check_for_ref_cycle(get_primary_image_ID(), m_iref_box);
if (error) {
if (error != Error::Ok) {
return error;
}
}
Expand Down Expand Up @@ -417,7 +417,7 @@ Error HeifFile::check_for_ref_cycle_recursion(heif_item_id ID,
std::vector<heif_item_id> image_references = iref_box->get_references(ID, fourcc("dimg"));
for (heif_item_id reference_idx : image_references) {
Error error = check_for_ref_cycle_recursion(reference_idx, iref_box, parent_items);
if (error) {
if (error != Error::Ok) {
return error;
}
}
Expand Down Expand Up @@ -705,7 +705,7 @@ Error HeifFile::get_source_image_id(const heif_item_id from_ID, heif_item_id *to
heif_suberror_No_iref_box);
}
Error error = check_for_ref_cycle(from_ID, m_iref_box);
if (error) {
if (error != Error::Ok) {
return error;
}
std::vector<uint32_t> references = m_iref_box->get_references(from_ID, fourcc_to_uint32("dimg"));
Expand Down Expand Up @@ -760,7 +760,7 @@ Error HeifFile::get_compressed_image_data(heif_item_id ID, std::vector<uint8_t>*
// we want to return the image data for the source image
heif_item_id to_ID;
Error error = get_source_image_id(ID, &to_ID);
if (error) {
if (error != Error::Ok) {
return error;
}
ID = to_ID;
Expand Down

0 comments on commit 22a3227

Please sign in to comment.