Fixing the encoder's handling of no-folding; with folding enabled

the encoder could attempt to create folding-free short blocks which
is not permitted by the bitstream.
This commit is contained in:
Gregory Maxwell 2009-05-26 21:15:12 -04:00 committed by Jean-Marc Valin
parent 5aaf12333e
commit c4b146c4ba

View file

@ -529,6 +529,7 @@ int celt_encode_float(CELTEncoder * restrict st, const celt_sig_t * pcm, celt_si
#endif
}
shortBlocks = 1;
has_fold = 1;
} else {
transient_time = -1;
transient_shift = 0;