[tensor] always use buffer in tensor_as_fvec
authorPaul Brossier <piem@piem.org>
Mon, 7 Jan 2019 21:14:13 +0000 (22:14 +0100)
committerPaul Brossier <piem@piem.org>
Mon, 7 Jan 2019 21:14:13 +0000 (22:14 +0100)
src/ai/tensor.c

index b9a7d77..7486a75 100644 (file)
@@ -74,7 +74,7 @@ void del_aubio_tensor(aubio_tensor_t *c)
 uint_t aubio_tensor_as_fvec(aubio_tensor_t *c, fvec_t *o) {
   if (!c || !o) return AUBIO_FAIL;
   o->length = c->size;
-  o->data = c->data[0];
+  o->data = c->buffer;
   return AUBIO_OK;
 }