Skip to content

Commit d3530e4

Browse files
committed
fix(openexr): inconsistent attribute read behaviour with ParamValue
Signed-off-by: glowies <[email protected]>
1 parent 25fac3c commit d3530e4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/openexr.imageio/exroutput.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,9 +358,11 @@ is_aces_container_attributes_non_empty(const OIIO::ImageSpec& spec,
358358
};
359359

360360
for (const auto& label : nonEmptyAttribs) {
361-
const ParamValue* value = spec.find_attribute(label,
361+
const ParamValue* found = spec.find_attribute(label,
362362
OIIO::TypeDesc::STRING);
363-
if (value && value->get<std::string>().empty()) {
363+
auto value = spec.get_string_attribute(label, "");
364+
365+
if (found && value.empty()) {
364366
non_compliant_attr = label;
365367
return false;
366368
}

0 commit comments

Comments
 (0)