diff options
author | Simon Wilson <ksattic@gmail.com> | 2012-10-22 17:12:34 -0700 |
---|---|---|
committer | Simon Wilson <ksattic@gmail.com> | 2012-10-22 17:12:34 -0700 |
commit | fcf66ab156a236ba2bb31df7d4d4611b8b7be431 (patch) | |
tree | 66fa736077fef0660c54ecc02fb8224c13477133 | |
parent | 3d622223918b77dfb7daebbf312c076b50176433 (diff) | |
parent | eb84d21dcca97df9cd84b7cb77ab7173d67bad81 (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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |