From b9c47da8979fa063357aac5fbbc05751eefc6323 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 28 Sep 2004 12:58:51 +0000 Subject: [PATCH] Merged 2229 --- ChangeLog | 4 ++++ src/extract/tracks.cpp | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8a07bdd03..493cc0e9f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2004-09-28 Moritz Bunkus + + * mkvextract: bug fix: The WAV writer was not endian safe. + 2004-09-27 Moritz Bunkus * mkvmerge: bug fix: The charset was not set correctly on Solaris. diff --git a/src/extract/tracks.cpp b/src/extract/tracks.cpp index a03a5dc20..60b20f6d3 100644 --- a/src/extract/tracks.cpp +++ b/src/extract/tracks.cpp @@ -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;