Encoder: avoid global buffer overflow on irreversible conversion when too many decomp...