Posted by Eugene on Sat 30th Jun 12:50
download | new post
- diff -urNp vorbis-tools-svn.orig/oggdec/oggdec.c vorbis-tools-svn/oggdec/oggdec.c
- --- vorbis-tools-svn.orig/oggdec/oggdec.c Sat Jun 30 00:42:17 2007
- +++ vorbis-tools-svn/oggdec/oggdec.c Sat Jun 30 01:10:47 2007
- -230,8 +230,8 @@ static FILE *open_output(char *outfile)
- static void
- permute_channels(char *in, char *out, int len, int channels, int bytespersample)
- {
- - int permute[6][6] = {{0}, {0,1}, {0,2,1}, {0,1,2,3}, {0,1,2,3,4},
- - {0,2,1,5,3,4}};
- + int permute[6][6] = {{0}, {0,1}, {0,2,1}, {0,1,2,3}, {0,2,1,3,4},
- + {0,2,1,4,5,3}};
- int i,j,k;
- int samples = len/channels/bytespersample;
- diff -urNp vorbis-tools-svn.orig/oggenc/audio.c vorbis-tools-svn/oggenc/audio.c
- --- vorbis-tools-svn.orig/oggenc/audio.c Sat Jun 30 00:42:18 2007
- +++ vorbis-tools-svn/oggenc/audio.c Sat Jun 30 00:51:17 2007
- -371,14 +371,21 @@ int wav_id(unsigned char *buf, int len)
- return 1;
- }
- +/*
- +using the master channel layout at
- +http://www.microsoft.com/whdc/device/audio/multichaud.mspx
- +and Vorbis specification (4.3.9)
- +http://www.xiph.org/vorbis/doc/Vorbis_I_spec.html#id2540617
- +*/
- +
- static int wav_permute_matrix[6][6] =
- {
- {0},
- {0,1},
- {0,2,1},
- {0,1,2,3},
- - {0,1,2,3,4}, /* No equivalent in wav? */
- - {0,2,1,5,3,4}
- + {0,2,1,3,4},
- + {0,2,1,4,5,3}
- };
- int wav_open(FILE *in, oe_enc_opt *opt, unsigned char *oldbuf, int buflen)
Submit a correction or amendment below. (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.