shithub: opus-tools

Download patch

ref: ca2f5b1c1b05a8461267c454e7d8b0b80c5dc434
parent: 0a7f91a6f72c6bb95df1f885cb1d7ab07c236456
author: Gregory Maxwell <[email protected]>
date: Tue May 22 22:38:18 EDT 2012

Fix opusdec wav output on big-endian systems.

--- a/src/opusdec.c
+++ b/src/opusdec.c
@@ -781,7 +781,7 @@
                      if (trunc > frame_size)
                         trunc = frame_size;
                      new_frame_size = frame_size - trunc;
-                     audio_write(output, channels, new_frame_size, fout, resampler, &preskip, dither?&shapemem:0, strlen(outFile)==0);
+                     audio_write(output, channels, new_frame_size, fout, resampler, &preskip, dither?&shapemem:0, strlen(outFile)!=0);
                      audio_size+=sizeof(short)*new_frame_size*channels;
                   }
                }