diff --git a/src/speexenc.c b/src/speexenc.c index 1beec999ffbcce58867f10171a93bce555d06bd8..acca976763e5178bd9868e03ec9b26d263c35712 100644 --- a/src/speexenc.c +++ b/src/speexenc.c @@ -574,7 +574,7 @@ int main(int argc, char **argv) perror("short file"); exit(1); } - if (strncmp(first_bytes,"RIFF",4)==0 && strncmp(first_bytes,"RIFF",4)==0) + if (strncmp(first_bytes,"RIFF",4)==0 || strncmp(first_bytes,"riff",4)==0) { if (read_wav_header(fin, &rate, &chan, &fmt, &size)==-1) exit(1);