From c4b146c4ba38de86f6970a90463ea35c320a78b6 Mon Sep 17 00:00:00 2001 From: Gregory Maxwell Date: Tue, 26 May 2009 21:15:12 -0400 Subject: [PATCH] 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. --- libcelt/celt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libcelt/celt.c b/libcelt/celt.c index 31c617ac..207fd095 100644 --- a/libcelt/celt.c +++ b/libcelt/celt.c @@ -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;