shithub: libopusenc

Download patch

ref: e7f7ebb8027c7f08030eaac1fd16d45e477455aa
parent: 849eaccf47f310c60abbe787f1683e6e58b24352
author: Jean-Marc Valin <jmvalin@jmvalin.ca>
date: Fri Jun 23 16:50:33 EDT 2017

Remove wav_permute_matrix[][]

It got copied from opus-tools, but it's not needed.

--- a/src/opus_header.c
+++ b/src/opus_header.c
@@ -262,17 +262,3 @@
 #undef readint
 #undef writeint
 
-
-/* This is just here because it's a convenient file linked by both opusenc and
-   opusdec (to guarantee this maps stays in sync). */
-const int wav_permute_matrix[8][8] =
-{
-  {0},              /* 1.0 mono   */
-  {0,1},            /* 2.0 stereo */
-  {0,2,1},          /* 3.0 channel ('wide') stereo */
-  {0,1,2,3},        /* 4.0 discrete quadraphonic */
-  {0,2,1,3,4},      /* 5.0 surround */
-  {0,2,1,4,5,3},    /* 5.1 surround */
-  {0,2,1,5,6,4,3},  /* 6.1 surround */
-  {0,2,1,6,7,4,5,3} /* 7.1 surround (classic theater 8-track) */
-};
--- a/src/opus_header.h
+++ b/src/opus_header.h
@@ -46,8 +46,6 @@
 
 int opus_header_to_packet(const OpusHeader *h, unsigned char *packet, int len);
 
-extern const int wav_permute_matrix[8][8];
-
 void comment_init(char **comments, int* length, const char *vendor_string);
 
 int comment_add(char **comments, int* length, const char *tag, const char *val);