Commit ecc63b36 authored by Tristan Matthews's avatar Tristan Matthews

speexenc: fix tautology

Checking for upper or lower case RIFF fourcc makes sense, checking
twice for the same one does not.
parent be6df4d6
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment