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.
This commit is contained in:
Timothy B. Terriberry 2011-01-09 20:04:12 -08:00 committed by Jean-Marc Valin
parent 76469c64b4
commit 08ef1f4c6c

View 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);