diff --git a/v3/ifd_enumerate.go b/v3/ifd_enumerate.go index afbbbd0..5d4268b 100644 --- a/v3/ifd_enumerate.go +++ b/v3/ifd_enumerate.go @@ -1445,7 +1445,7 @@ func (ie *IfdEnumerate) Collect(rootIfdOffset uint32) (index IfdIndex, err error } // If there's another IFD in the chain. - if nextIfdOffset != 0 { + if nextIfdOffset > offset { iiSibling := ii.NewSibling(ii.Index() + 1) // Allow the next link to know what the previous link was.