shithub: sox

Download patch

ref: d8c16f9d708847553fba2358c3f1670ab90cef2a
parent: e9f7c8a549f1e4959196af0e81cae541f8f8077f
author: cbagwell <cbagwell>
date: Sun Sep 19 18:04:17 EDT 2004

warning fix

--- a/src/wav.c
+++ b/src/wav.c
@@ -1664,10 +1664,10 @@
             new_offset += wav->dataStart;
 
             ft->st_errno = st_seek(ft, new_offset, SEEK_SET);
-    }
 
-    if( ft->st_errno == ST_SUCCESS )
-        wav->numSamples = ft->length - new_offset;
+            if( ft->st_errno == ST_SUCCESS )
+                wav->numSamples = ft->length - new_offset;
+    }
 
     return(ft->st_errno);
 }