Properly skip padding in testcelt for stereo.
[opus.git] / libcelt / testcelt.c
index 6bfd0dd..187ea1a 100644 (file)
@@ -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);