NMT: fix minor bug
This commit is contained in:
parent
4d22b11855
commit
26593ed034
|
@ -141,7 +141,7 @@ int dsp_init_sender(nmt_t *nmt)
|
||||||
|
|
||||||
/* allocate ring buffer for supervisory signal detection */
|
/* allocate ring buffer for supervisory signal detection */
|
||||||
nmt->super_samples = (int)((double)nmt->sender.samplerate * SUPER_DURATION + 0.5);
|
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) {
|
if (!spl) {
|
||||||
PDEBUG(DDSP, DEBUG_ERROR, "No memory!\n");
|
PDEBUG(DDSP, DEBUG_ERROR, "No memory!\n");
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
Loading…
Reference in New Issue