shithub: opus

Download patch

ref: 1f0c1b196fc69b373beccf55c40aefd230412bd6
parent: 722a66b84becd0907f0bb4f6f80d17dbc04eb5e6
author: Jean-Marc Valin <[email protected]>
date: Thu Jul 26 16:13:55 EDT 2018

Fixes C90 "mixed declarations and code" error

--- a/src/opus_projection_encoder.c
+++ b/src/opus_projection_encoder.c
@@ -379,6 +379,7 @@
 
 int opus_projection_encoder_ctl(OpusProjectionEncoder *st, int request, ...)
 {
+  va_list ap;
   MappingMatrix *demixing_matrix;
   OpusMSEncoder *ms_encoder;
   int ret = OPUS_OK;
@@ -386,7 +387,6 @@
   ms_encoder = get_multistream_encoder(st);
   demixing_matrix = get_demixing_matrix(st);
 
-  va_list ap;
   va_start(ap, request);
   switch(request)
   {