Commit 17ea4b7e authored by Gregory Maxwell's avatar Gregory Maxwell Committed by Jean-Marc Valin
Browse files

For some frame sizes there can be 5 shorts in a frame.

Correct an out of bounds access in this case.
parent 6d454d8d
......@@ -609,7 +609,7 @@ int celt_encode_float(CELTEncoder * restrict st, const celt_sig_t * pcm, celt_si
if (shortBlocks && !transient_shift)
{
celt_word32_t sum[4]={1,1,1,1};
celt_word32_t sum[5]={1,1,1,1,1};
int m;
for (c=0;c<C;c++)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment