Skip to content

Commit

Permalink
fix(exr): allow an empty "name" metadata to be read
Browse files Browse the repository at this point in the history
Continuation of PR #4528. I forgot to change the spot in the
OpenEXR "core" API as well.
  • Loading branch information
lgritz committed Nov 12, 2024
1 parent 2132261 commit 9098f16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openexr.imageio/exrinput_c.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ OpenEXRCoreInput::PartInfo::parse_header(OpenEXRCoreInput* in,
// EXR "name" also gets passed along as "oiio:subimagename".
const char* partname;
if (exr_get_name(ctxt, subimage, &partname) == EXR_ERR_SUCCESS) {
if (partname && partname[0] != '\0')
if (partname)
spec.attribute("oiio:subimagename", partname);
}

Expand Down

0 comments on commit 9098f16

Please sign in to comment.