aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tinycap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tinycap.c b/tinycap.c
index d563309..f46796b 100644
--- a/tinycap.c
+++ b/tinycap.c
@@ -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);