aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Wilson <ksattic@gmail.com>2012-10-22 17:12:34 -0700
committerSimon Wilson <ksattic@gmail.com>2012-10-22 17:12:34 -0700
commitfcf66ab156a236ba2bb31df7d4d4611b8b7be431 (patch)
tree66fa736077fef0660c54ecc02fb8224c13477133
parent3d622223918b77dfb7daebbf312c076b50176433 (diff)
parenteb84d21dcca97df9cd84b7cb77ab7173d67bad81 (diff)
Merge pull request #16 from PeterMalkin/master
Correctly fill the value for riff chunk size in the WAV file produced by tinycap
-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);