NMT: fix minor bug

This commit is contained in:
Andreas Eversberg 2016-06-06 19:41:05 +02:00
parent 4d22b11855
commit 26593ed034
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ int dsp_init_sender(nmt_t *nmt)
/* allocate ring buffer for supervisory signal detection */
nmt->super_samples = (int)((double)nmt->sender.samplerate * SUPER_DURATION + 0.5);
spl = calloc(166, nmt->super_samples * sizeof(*spl));
spl = calloc(1, nmt->super_samples * sizeof(*spl));
if (!spl) {
PDEBUG(DDSP, DEBUG_ERROR, "No memory!\n");
return -ENOMEM;