mirror of
https://github.com/google/liblc3.git
synced 2026-06-02 09:57:02 +00:00
Merge pull request #13 from asymptotic-io/padding_error
tools/elc3: Use correct offset for pcm buffer padding
This commit is contained in:
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user