diff options
author | Ryan C. Gordon <icculus@icculus.org> | 2009-01-11 04:29:36 +0000 |
---|---|---|
committer | Ryan C. Gordon <icculus@icculus.org> | 2009-01-11 04:29:36 +0000 |
commit | 3fc4b4d1104e8b1f6a10e9e0b884848ef55c62f6 (patch) | |
tree | ce60f9f45a85fb52efed7257d67c393dd70a3317 /test/testresample.c | |
parent | 0ab99a324645405b502be48342cb902426f5cfa0 (diff) | |
download | sdl-3fc4b4d1104e8b1f6a10e9e0b884848ef55c62f6.tar.gz |
testresample.c: Write out correct size for resampled buffer.
Diffstat (limited to 'test/testresample.c')
-rw-r--r-- | test/testresample.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/testresample.c b/test/testresample.c index 6092c140d..277a1d980 100644 --- a/test/testresample.c +++ b/test/testresample.c @@ -90,8 +90,8 @@ int main(int argc, char **argv) SDL_WriteLE16(io, blockalign); /* block align */ SDL_WriteLE16(io, bitsize); /* significant bits per sample */ SDL_WriteLE32(io, 0x61746164); /* data */ - SDL_WriteLE32(io, len * cvt.len_mult); /* size */ - SDL_RWwrite(io, cvt.buf, len * cvt.len_mult, 1); + SDL_WriteLE32(io, cvt.len_cvt); /* size */ + SDL_RWwrite(io, cvt.buf, cvt.len_cvt, 1); if (SDL_RWclose(io) == -1) { |