JBIG2: finds end of segment when length is not specified
Merge pull request #2786 from yurydelendik/jbig2-len

JBIG2: finds end of a segment when length is not specified