summaryrefslogtreecommitdiffstats
path: root/libaf/af_export.c
diff options
context:
space:
mode:
Diffstat (limited to 'libaf/af_export.c')
-rw-r--r--libaf/af_export.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libaf/af_export.c b/libaf/af_export.c
index f64299ba21..c685cb10b4 100644
--- a/libaf/af_export.c
+++ b/libaf/af_export.c
@@ -72,7 +72,7 @@ static int control(struct af_instance_s* af, int cmd, void* arg)
// Accept only int16_t as input format (which sucks)
af->data->rate = ((af_data_t*)arg)->rate;
af->data->nch = ((af_data_t*)arg)->nch;
- af->data->format = AF_FORMAT_SI | AF_FORMAT_NE;
+ af->data->format = AF_FORMAT_S16_NE;
af->data->bps = 2;
// If buffer length isn't set, set it to the default value
@@ -163,7 +163,6 @@ static int control(struct af_instance_s* af, int cmd, void* arg)
*/
static void uninit( struct af_instance_s* af )
{
- int i;
if (af->data){
free(af->data);
af->data = NULL;