shithub: sox

Download patch

ref: dcd4fe8e5982fb064e931bf428122e373b6daa76
parent: 923f690a2f48ca815bce4791f8d02fc8d8322eed
author: Doug Cook <idigdoug@users.sourceforge.net>
date: Sat Mar 19 19:48:00 EDT 2011

In sox_format_supports_encoding, allow path to be null if filetype is set.

--- a/src/formats.c
+++ b/src/formats.c
@@ -591,7 +591,7 @@
   unsigned i = 0, s;
   sox_encoding_t e;
 
-  assert(path);
+  assert(path || filetype);
   assert(encoding);
   if (!filetype)
     filetype = lsx_find_file_extension(path);