JBIG2: finds end of segment when length is not specified