changeset 3018:d706d3170d7d

testresample.c: Write out correct size for resampled buffer.
author Ryan C. Gordon <icculus@icculus.org>
date Sun, 11 Jan 2009 04:29:36 +0000
parents 3272431eeee2
children dfd23eb79be9
files test/testresample.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)
     {