ref: 08ef1f4c6c77c8dc03509dffdae91420e434d22f
parent: 76469c64b4a6fb67946e58b6d2f32a5bfa18fcac
author: Timothy B. Terriberry <[email protected]>
date: Sun Jan 9 15:04:12 EST 2011
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.
--- a/libcelt/testcelt.c
+++ b/libcelt/testcelt.c
@@ -182,7 +182,7 @@
}
#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);