File tree 1 file changed +11
-9
lines changed
1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -634,16 +634,18 @@ Error HeifContext::interpret_heif_file()
634
634
635
635
const auto & subtypes = auxC_property->get_subtypes ();
636
636
637
- std::vector<std::shared_ptr<SEIMessage>> sei_messages;
638
- Error err = decode_hevc_aux_sei_messages (subtypes, sei_messages);
639
- if (err) {
640
- return err;
641
- }
637
+ if (!subtypes.empty ()) {
638
+ std::vector<std::shared_ptr<SEIMessage>> sei_messages;
639
+ Error err = decode_hevc_aux_sei_messages (subtypes, sei_messages);
640
+ if (err) {
641
+ return err;
642
+ }
642
643
643
- for (auto & msg : sei_messages) {
644
- auto depth_msg = std::dynamic_pointer_cast<SEIMessage_depth_representation_info>(msg);
645
- if (depth_msg) {
646
- image->set_depth_representation_info (*depth_msg);
644
+ for (auto & msg : sei_messages) {
645
+ auto depth_msg = std::dynamic_pointer_cast<SEIMessage_depth_representation_info>(msg);
646
+ if (depth_msg) {
647
+ image->set_depth_representation_info (*depth_msg);
648
+ }
647
649
}
648
650
}
649
651
}
You can’t perform that action at this time.
0 commit comments