36b84f
diff --git a/src/wav_io.c b/src/wav_io.c
36b84f
index b51830158f4defb536a760c93a77567daf69a74b..09d62eb017bb48fe48fa1efcaa122719ef1fe39f 100644
36b84f
--- a/src/wav_io.c
36b84f
+++ b/src/wav_io.c
36b84f
@@ -111,7 +111,7 @@ int read_wav_header(FILE *file, int *rate, int *channels, int *format, spx_int32
36b84f
    stmp = le_short(stmp);
36b84f
    *channels = stmp;
36b84f
 
36b84f
-   if (stmp>2)
36b84f
+   if (stmp>2 || stmp<1)
36b84f
    {
36b84f
       fprintf (stderr, "Only mono and (intensity) stereo supported\n");
36b84f
       return -1;
36b84f