Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xiph/speex.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Matthews <tmatth@videolan.org>2015-04-21 01:17:59 +0300
committerTristan Matthews <tmatth@videolan.org>2015-04-21 01:17:59 +0300
commitecc63b360cbf6675d905ae278776c628fdfda00a (patch)
tree83be20a07daee8789725d8350ab9b2a8da4e2a63
parentbe6df4d61427c04b6609205fab079a1e6a05cb69 (diff)
speexenc: fix tautology
Checking for upper or lower case RIFF fourcc makes sense, checking twice for the same one does not.
-rw-r--r--src/speexenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/speexenc.c b/src/speexenc.c
index 1beec99..acca976 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);