aboutsummaryrefslogtreecommitdiff
path: root/tools/elc3.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/elc3.c')
-rw-r--r--tools/elc3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/elc3.c b/tools/elc3.c
index f9b3da2..fd8a05b 100644
--- a/tools/elc3.c
+++ b/tools/elc3.c
@@ -219,7 +219,7 @@ int main(int argc, char *argv[])
int nread = wave_read_pcm(fp_in, pcm_sbytes, nch, frame_samples, pcm);
- memset(pcm + nread * nch, 0,
+ memset(pcm + nread * nch * pcm_sbytes, 0,
nch * (frame_samples - nread) * pcm_sbytes);
if (floorf(i * frame_us * 1e-6) > nsec) {