diff options
author | Antoine SOULIER <103120622+asoulier@users.noreply.github.com> | 2022-11-11 14:43:16 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-11 14:43:16 -0800 |
commit | 3bb98b24b8f63fd76cef95238433627353784dca (patch) | |
tree | 1f4d7c24c8794b4dcfadcda8ddaa3a04324905f7 | |
parent | cf1676d4ffde82ecc7f7e3c90c3295f7c906d39b (diff) | |
parent | 22626a595b5134baf4ad327f18ed183670f4da70 (diff) | |
download | liblc3-3bb98b24b8f63fd76cef95238433627353784dca.tar.gz |
Merge pull request #13 from asymptotic-io/padding_error
tools/elc3: Use correct offset for pcm buffer padding
-rw-r--r-- | tools/elc3.c | 2 |
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) { |