mirror of
https://github.com/openharmony/third_party_tinyalsa.git
synced 2026-07-19 15:24:22 -04:00
Report correct chunk size per RIFF format requirements
Change-Id: I72948868c4da88556b022ca2c583a351c5019022
This commit is contained in:
@@ -153,6 +153,7 @@ int main(int argc, char **argv)
|
||||
|
||||
/* write header now all information is known */
|
||||
header.data_sz = frames * header.block_align;
|
||||
header.riff_sz = header.data_sz + sizeof(header) - 8;
|
||||
fseek(file, 0, SEEK_SET);
|
||||
fwrite(&header, sizeof(struct wav_header), 1, file);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user