1994.01.17 15:51 "ExtraSamples Bug in TIFF 3.30beta 002", by Olli Raisa

1994.01.17 17:07 "Re: ExtraSamples Bug in TIFF 3.30beta 002", by Olli Raisa

Not sure if this is a bug. It seems that only if you have the td_extrasamples set up you need to output. Otherwise just don't bother to output it. If you add! to it, it will output when it's not set up and won't do it when it's needed.

Here is the original code:

        /*
         * Write out ExtraSamples tag only if
         * extra samples are present in the data.
         */
        if (FieldSet(fields, FIELD_EXTRASAMPLES) && td->td_extrasamples) {
                ResetFieldBit(fields, FIELD_EXTRASAMPLES);
                nfields--;
                dirsize -= sizeof (TIFFDirEntry);
        }      

Isn't td_extrasamples the number of extra samples? If so, whenever td_extrasamples is non-zero, output is prevented. The intention apparently is to prevent output when the number of extra_samples is zero.

Olli