shithub: sox

Download patch

ref: 2730cf01f3ccf15cfe577d0b05592bddc7f7cadf
parent: fe29bc0e87540e821e406390f323016137e715d9
author: Ulrich Klauer <ulrich@chirlu.de>
date: Fri Aug 24 05:29:47 EDT 2012

Clarify misleading error message

SoX complained that "data encoding was not specified" even when it was
(-e option), but no sample size given (-b option). Change this to
"data encoding or sample size was not specified", as proposed by
Frank Heckenbach in Debian bug #676143.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=676143

--- a/src/formats.c
+++ b/src/formats.c
@@ -343,7 +343,7 @@
     return SOX_EOF;
   }
   if (!ft->signal.precision) {
-    lsx_fail_errno(ft,SOX_EFMT,"data encoding was not specified");
+    lsx_fail_errno(ft,SOX_EFMT,"data encoding or sample size was not specified");
     return SOX_EOF;
   }
   return SOX_SUCCESS;