shithub: aubio

Download patch

ref: 07c76d008560c7d5d8cce8f74ca295575fb5ec2a
parent: 6245b5282b6a39b54429dcbcc48b00d5d8c32c24
author: Paul Brossier <piem@piem.org>
date: Sat Dec 22 19:03:13 EST 2018

[sink_flac] no declaration after statement

--- a/src/io/sink_flac.c
+++ b/src/io/sink_flac.c
@@ -129,6 +129,7 @@
   uint_t ret = AUBIO_FAIL;
   FLAC__bool ok = true;
   FLAC__StreamEncoderInitStatus init_status;
+  FLAC__StreamMetadata_VorbisComment_Entry entry;
   const unsigned comp_level = 5;
   const unsigned bps = 16;
 
@@ -182,7 +183,6 @@
     goto failure;
   }
 
-  FLAC__StreamMetadata_VorbisComment_Entry entry;
   ok = FLAC__metadata_object_vorbiscomment_entry_from_name_value_pair(&entry,
       "encoder", "aubio");
   ok &= FLAC__metadata_object_vorbiscomment_append_comment(s->metadata[0],