[opus] [PATCH] Fix build error from comma at end of enum

Michael Graczyk mgraczyk at google.com
Thu Jun 30 03:30:19 UTC 2016


---
 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 a1cd0f5..9a7ea95 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;
 
-- 
2.8.0.rc3.226.g39d4020



More information about the opus mailing list