projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
168f404
)
check_wav: Remove pointless cast.
author
Andre Noll
<maan@tuebingen.mpg.de>
Sat, 8 Sep 2018 11:14:37 +0000
(13:14 +0200)
committer
Andre Noll
<maan@tuebingen.mpg.de>
Sun, 30 Sep 2018 19:31:39 +0000
(21:31 +0200)
cwc->channels is already unsigned.
check_wav.c
patch
|
blob
|
history
diff --git
a/check_wav.c
b/check_wav.c
index 025dcb85ed47091d4d4def39545ff86578ac3cda..89ebdacc0805e9575acea92d09ed3b2dd81ebac3 100644
(file)
--- a/
check_wav.c
+++ b/
check_wav.c
@@
-156,7
+156,7
@@
int check_wav_post_select(struct check_wav_context *cwc)
PARA_INFO_LOG("found wav header\n");
cwc->state = CWS_HAVE_HEADER;
/* Only set those values which have not already been set. */
- cwc->channels =
(unsigned)
a[22];
+ cwc->channels = a[22];
cwc->sample_rate = read_u32(a + 24);
bps = read_u16(a + 34);
if (bps != 8 && bps != 16) {