Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/aubiomfcc.c

    r340cb93 r61a1e5d  
    4949
    5050int main(int argc, char **argv) {
     51  int ret = 0;
    5152  // change some default params
    5253  buffer_size  = 512;
     
    6364  mfcc = new_aubio_mfcc(buffer_size, n_filters, n_coefs, samplerate);
    6465  mfcc_out = new_fvec(n_coefs);
     66  if (pv == NULL || fftgrain == NULL || mfcc == NULL || mfcc_out == NULL) {
     67    ret = 1;
     68    goto beach;
     69  }
    6570
    6671  examples_common_process((aubio_process_func_t)process_block, process_print);
     
    7176  del_fvec(mfcc_out);
    7277
     78beach:
    7379  examples_common_del();
    74   return 0;
     80  return ret;
    7581}
    76 
Note: See TracChangeset for help on using the changeset viewer.