Browse Source

testresample: write correct length to the .wav header.

Ryan C. Gordon 8 years ago
parent
commit
97f19cc367
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/testresample.c

+ 1 - 1
test/testresample.c

@@ -89,7 +89,7 @@ main(int argc, char **argv)
     avgbytes = cvtfreq * blockalign;
 
     SDL_WriteLE32(io, 0x46464952);      /* RIFF */
-    SDL_WriteLE32(io, len * cvt.len_mult + 36);
+    SDL_WriteLE32(io, cvt.len_cvt + 36);
     SDL_WriteLE32(io, 0x45564157);      /* WAVE */
     SDL_WriteLE32(io, 0x20746D66);      /* fmt */
     SDL_WriteLE32(io, 16);      /* chunk size */