From 97f19cc3675f03e94d89fc85f45cf024c0b974b7 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 9 Jan 2017 15:56:11 -0500 Subject: [PATCH] testresample: write correct length to the .wav header. --- test/testresample.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/testresample.c b/test/testresample.c index 85a8eb71f..a54a47dcb 100644 --- a/test/testresample.c +++ b/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 */