From 08ef1f4c6c77c8dc03509dffdae91420e434d22f Mon Sep 17 00:00:00 2001 From: "Timothy B. Terriberry" Date: Sun, 9 Jan 2011 20:04:12 -0800 Subject: [PATCH] Properly skip padding in testcelt for stereo. The right amount of data was being written for the first frame, but from the wrong offset in the buffer. --- libcelt/testcelt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcelt/testcelt.c b/libcelt/testcelt.c index 6bfd0dd2..187ea1a7 100644 --- a/libcelt/testcelt.c +++ b/libcelt/testcelt.c @@ -182,7 +182,7 @@ int main(int argc, char *argv[]) } #endif count++; - fwrite(out+skip, sizeof(short), (frame_size-skip)*channels, fout); + fwrite(out+skip*channels, sizeof(short), (frame_size-skip)*channels, fout); skip = 0; } PRINT_MIPS(stderr);