Skip to content

Commit

Permalink
catch decode_hevc_aux_sei_messages() errors
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Oct 22, 2024
1 parent 555e7d0 commit 2e88157
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libheif/context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -627,10 +627,13 @@ Error HeifContext::interpret_heif_file()
}
master_iter->second->set_depth_channel(image);

auto subtypes = auxC_property->get_subtypes();
const auto& subtypes = auxC_property->get_subtypes();

std::vector<std::shared_ptr<SEIMessage>> sei_messages;
err = decode_hevc_aux_sei_messages(subtypes, sei_messages);
if (err) {
return err;
}

for (auto& msg : sei_messages) {
auto depth_msg = std::dynamic_pointer_cast<SEIMessage_depth_representation_info>(msg);
Expand Down

0 comments on commit 2e88157

Please sign in to comment.