# HG changeset patch # User Ryan C. Gordon # Date 1231648176 0 # Node ID d706d3170d7ddaeea55500921d43436bbdcd53c8 # Parent 3272431eeee22df6c63cf6725834d1b3db5b128e testresample.c: Write out correct size for resampled buffer. diff -r 3272431eeee2 -r d706d3170d7d test/testresample.c --- a/test/testresample.c Sun Jan 11 04:05:28 2009 +0000 +++ b/test/testresample.c Sun Jan 11 04:29:36 2009 +0000 @@ -90,8 +90,8 @@ 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) {