shithub: sox

Download patch

ref: b94453cf76451ef4a80744b6158b6d944751e541
parent: c97d3bb141f953c4aa07a4462fe2495a53b0e1c9
author: Ulrich Klauer <ulrich@chirlu.de>
date: Tue Oct 16 06:30:42 EDT 2012

Improve warning message wording in WAV handler

Change "FmtExt chunk" into "extended part of fmt chunk", since there is
no such thing as a "FmtExt chunk".

(Mentioned in issue 3481510 by nu774, as "mysterious".)

--- a/src/wav.c
+++ b/src/wav.c
@@ -623,7 +623,7 @@
     wav->packet = NULL;
     wav->samples = NULL;
 
-    /* non-PCM formats expect alaw and mulaw formats have extended fmt chunk.
+    /* non-PCM formats except alaw and mulaw formats have extended fmt chunk.
      * Check for those cases.
      */
     if (wav->formatTag != WAVE_FORMAT_PCM &&
@@ -633,7 +633,7 @@
             lsx_readw(ft, &wExtSize);
             len -= 2;
         } else {
-            lsx_warn("wave header missing FmtExt chunk");
+            lsx_warn("wave header missing extended part of fmt chunk");
         }
     }