diff options
author | Tristan Matthews <tmatth@videolan.org> | 2015-04-21 01:17:59 +0300 |
---|---|---|
committer | Tristan Matthews <tmatth@videolan.org> | 2015-04-21 01:17:59 +0300 |
commit | ecc63b360cbf6675d905ae278776c628fdfda00a (patch) | |
tree | 83be20a07daee8789725d8350ab9b2a8da4e2a63 | |
parent | be6df4d61427c04b6609205fab079a1e6a05cb69 (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.c | 2 |
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); |