Skip to content

Commit cb15459

Browse files
lgritzscott-wilson
authored andcommitted
fix(exr): allow an empty "name" metadata to be read (AcademySoftwareFoundation#4536)
Continuation of PR AcademySoftwareFoundation#4528. I forgot to change the spot in the OpenEXR "core" API as well. Signed-off-by: Larry Gritz <[email protected]> Signed-off-by: Scott Wilson <[email protected]>
1 parent d59fd68 commit cb15459

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/openexr.imageio/exrinput_c.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ OpenEXRCoreInput::PartInfo::parse_header(OpenEXRCoreInput* in,
757757
// EXR "name" also gets passed along as "oiio:subimagename".
758758
const char* partname;
759759
if (exr_get_name(ctxt, subimage, &partname) == EXR_ERR_SUCCESS) {
760-
if (partname && partname[0] != '\0')
760+
if (partname)
761761
spec.attribute("oiio:subimagename", partname);
762762
}
763763

0 commit comments

Comments
 (0)