shithub: sox

Download patch

ref: 8b3ab9b0f12e8e2e3321fe49e8269c5f61ed7a9c
parent: 9bdc9d9964452fb28b84ef8ceda7f53979f32bb8
author: robs <robs>
date: Sat Apr 21 15:26:48 EDT 2007

endianism always determined by header

--- a/src/wav.c
+++ b/src/wav.c
@@ -7,7 +7,7 @@
  * Copyright 1997 Graeme W. Gill, 93/5/17
  *
  * Info for format tags can be found at:
- *   http://www.microsoft.com/asf/resources/draft-ietf-fleischman-codec-subtree-01.txt
+ *   http://www-mmsp.ece.mcgill.ca/Documents/AudioFormats/WAVE/WAVE.html
  *
  */
 
@@ -421,6 +421,7 @@
         sox_debug("Found RIFX header, swapping bytes");
         ft->signal.reverse_bytes = SOX_IS_LITTLEENDIAN;
     }
+    else ft->signal.reverse_bytes = SOX_IS_BIGENDIAN;
 
     sox_readdw(ft, &dwRiffLength);