Fix warning in test suite, introduced in a87e6b

Recently a warning was added to libFLAC when RIFF header doesn't
match the filesize. It turns out that warning is trigger by a very
old (harmless) bug in the test suite file generator
This commit is contained in:
Martijn van Beurden 2023-02-11 09:42:11 +01:00 committed by GitHub
parent aaffdcaa96
commit 3f1f82c8fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -992,7 +992,7 @@ static FLAC__bool write_simple_wavex_header (FILE * f, unsigned samplerate, unsi
if (fwrite("RIFF", 1, 4, f) != 4)
return false;
if (!write_little_endian_uint32(f, 40 + 4 + 4 + datalen))
if (!write_little_endian_uint32(f, 60 + datalen))
return false;
if (fwrite("WAVEfmt ", 8, 1, f) != 1)