This patch corrects the bug #370144, includes the patch from Robert Millan <[EMAIL PROTECTED]>.

This a patch for the package.

-- Carlos C Soto :: eclipxe
Sólo en mkvtoolnix-1.7.0-orig/: autom4te.cache
diff -ru mkvtoolnix-1.7.0-orig/debian/changelog mkvtoolnix-1.7.0/debian/changelog
--- mkvtoolnix-1.7.0-orig/debian/changelog	2006-08-13 19:38:31.000000000 -0500
+++ mkvtoolnix-1.7.0/debian/changelog	2006-08-13 19:37:58.000000000 -0500
@@ -1,3 +1,10 @@
+mkvtoolnix (1.7.0-1.1) unstable; urgency=low
+
+  * Patch for file p_pcm.cpp, thanks to Robert Millan <[EMAIL PROTECTED]>.
+    (Closes: #370144)
+
+ -- Carlos C Soto <[EMAIL PROTECTED]>  Sun, 13 Aug 2006 19:37:22 -0500
+
 mkvtoolnix (1.7.0-1) unstable; urgency=low
 
   * New upstream release
diff -ru mkvtoolnix-1.7.0-orig/src/output/p_pcm.cpp mkvtoolnix-1.7.0/src/output/p_pcm.cpp
--- mkvtoolnix-1.7.0-orig/src/output/p_pcm.cpp	2005-10-09 04:30:24.000000000 -0500
+++ mkvtoolnix-1.7.0/src/output/p_pcm.cpp	2006-08-13 19:36:15.000000000 -0500
@@ -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() {

Reply via email to