pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

Diff paste-bin - collaborative debugging tool View Help


Posted by Eugene on Sat 30th Jun 12:50
download | new post

  1. diff -urNp vorbis-tools-svn.orig/oggdec/oggdec.c vorbis-tools-svn/oggdec/oggdec.c
  2. --- vorbis-tools-svn.orig/oggdec/oggdec.c       Sat Jun 30 00:42:17 2007
  3. +++ vorbis-tools-svn/oggdec/oggdec.c    Sat Jun 30 01:10:47 2007
  4.  -230,8 +230,8 @@ static FILE *open_output(char *outfile)
  5.  static void
  6.  permute_channels(char *in, char *out, int len, int channels, int bytespersample)
  7.  {
  8. -    int permute[6][6] = {{0}, {0,1}, {0,2,1}, {0,1,2,3}, {0,1,2,3,4},
  9. -        {0,2,1,5,3,4}};
  10. +    int permute[6][6] = {{0}, {0,1}, {0,2,1}, {0,1,2,3}, {0,2,1,3,4},
  11. +        {0,2,1,4,5,3}};
  12.      int i,j,k;
  13.      int samples = len/channels/bytespersample;
  14.  
  15. diff -urNp vorbis-tools-svn.orig/oggenc/audio.c vorbis-tools-svn/oggenc/audio.c
  16. --- vorbis-tools-svn.orig/oggenc/audio.c        Sat Jun 30 00:42:18 2007
  17. +++ vorbis-tools-svn/oggenc/audio.c     Sat Jun 30 00:51:17 2007
  18.  -371,14 +371,21 @@ int wav_id(unsigned char *buf, int len)
  19.      return 1;
  20.  }
  21.  
  22. +/*
  23. +using the master channel layout at
  24. +http://www.microsoft.com/whdc/device/audio/multichaud.mspx
  25. +and Vorbis specification (4.3.9)
  26. +http://www.xiph.org/vorbis/doc/Vorbis_I_spec.html#id2540617
  27. +*/
  28. +
  29.  static int wav_permute_matrix[6][6] =
  30.  {
  31.      {0},
  32.      {0,1},
  33.      {0,2,1},
  34.      {0,1,2,3},
  35. -    {0,1,2,3,4}, /* No equivalent in wav? */
  36. -    {0,2,1,5,3,4}
  37. +    {0,2,1,3,4},
  38. +    {0,2,1,4,5,3}
  39.  };
  40.  
  41.  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.

Use syntax highlighting

To highlight particular lines, prefix each line with @@
:
:
Remember my settings