tags 370144 patch thanks Patch attached.
-- Robert Millan
diff -ur mkvtoolnix-1.7.0.old/src/output/p_pcm.cpp mkvtoolnix-1.7.0/src/output/p_pcm.cpp --- mkvtoolnix-1.7.0.old/src/output/p_pcm.cpp 2005-10-09 11:30:24.000000000 +0200 +++ mkvtoolnix-1.7.0/src/output/p_pcm.cpp 2006-06-05 01:17:13.239374600 +0200 @@ -51,7 +51,10 @@ set_track_default_duration((int64_t)(1000000000.0 * ti.async.linear * packet_size / samples_per_sec)); - packet_size *= channels * bits_per_sample / 8; + /* It could happen that (channels * bits_per_sample < 8). Because of this, + we mustn't divide by 8 in the same line, or the result would be hosed. */ + packet_size *= channels * bits_per_sample; + packet_size /= 8; } pcm_packetizer_c::~pcm_packetizer_c() {