From d6642d694333309a9676499c1d7910953290e5ed Mon Sep 17 00:00:00 2001
From: Michael Graczyk <mgraczyk@google.com>
Date: Wed, 29 Jun 2016 20:30:19 -0700
Subject: [PATCH] Fix build error from comma at end of enum

Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
---
 src/opus_multistream_encoder.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/opus_multistream_encoder.c b/src/opus_multistream_encoder.c
index a1cd0f5ce..9a7ea95ed 100644
--- a/src/opus_multistream_encoder.c
+++ b/src/opus_multistream_encoder.c
@@ -72,9 +72,10 @@ typedef void (*opus_copy_channel_in_func)(
 
 typedef enum {
   MAPPING_TYPE_NONE,
-  MAPPING_TYPE_SURROUND,
+  MAPPING_TYPE_SURROUND
 #ifdef ENABLE_EXPERIMENTAL_AMBISONICS
-  MAPPING_TYPE_AMBISONICS,
+  ,  /* Do not include comma at end of enumerator list */
+  MAPPING_TYPE_AMBISONICS
 #endif
 } MappingType;
 
-- 
GitLab