Merged 2229

This commit is contained in:
Moritz Bunkus 2004-09-28 12:58:51 +00:00
parent cde2eab9b1
commit b9c47da897
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2004-09-28 Moritz Bunkus <moritz@bunkus.org>
* mkvextract: bug fix: The WAV writer was not endian safe.
2004-09-27 Moritz Bunkus <moritz@bunkus.org>
* mkvmerge: bug fix: The charset was not set correctly on Solaris.

View File

@ -970,8 +970,8 @@ close_files() {
case TYPEWAV:
// Fix the header with the real number of bytes written.
tracks[i].out->setFilePointer(0);
tracks[i].wh.riff.len = tracks[i].bytes_written + 36;
tracks[i].wh.data.len = tracks[i].bytes_written;
put_uint32(&tracks[i].wh.riff.len, tracks[i].bytes_written + 36);
put_uint32(&tracks[i].wh.data.len, tracks[i].bytes_written);
tracks[i].out->write(&tracks[i].wh, sizeof(wave_header));
delete tracks[i].out;