We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51e8e4c commit da4e4b6Copy full SHA for da4e4b6
libheif/image-items/image_item.cc
@@ -708,6 +708,10 @@ Result<std::shared_ptr<HeifPixelImage>> ImageItem::decode_image(const heif_decod
708
}
709
710
auto img = *decodingResult;
711
+ if (!img) {
712
+ // Can happen if missing tiled image is decoded in non-strict mode.
713
+ return Error(heif_error_Decoder_plugin_error, heif_suberror_Unspecified);
714
+ }
715
716
std::shared_ptr<HeifFile> file = m_heif_context->get_heif_file();
717
0 commit comments