summaryrefslogtreecommitdiff
path: root/debian/patches/0004-sample-util-fix-iteration-loop-when-adjusting-volum.patch
diff options
context:
space:
mode:
authorJyri Sarha <jyri.sarha@nokia.com>2009-07-31 15:46:53 +0300
committerJyri Sarha <jyri.sarha@nokia.com>2009-07-31 15:46:53 +0300
commit93a144868a05d49f18aa277d13fad210392b85a9 (patch)
tree3a05628d032b049674031fce1445d3446a53748c /debian/patches/0004-sample-util-fix-iteration-loop-when-adjusting-volum.patch
parent3f6453b8b69d825492ab7b5f924ad25b9ec0c149 (diff)
debian: Update patch series
Diffstat (limited to 'debian/patches/0004-sample-util-fix-iteration-loop-when-adjusting-volum.patch')
-rw-r--r--debian/patches/0004-sample-util-fix-iteration-loop-when-adjusting-volum.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/debian/patches/0004-sample-util-fix-iteration-loop-when-adjusting-volum.patch b/debian/patches/0004-sample-util-fix-iteration-loop-when-adjusting-volum.patch
new file mode 100644
index 000000000..dc3df1494
--- /dev/null
+++ b/debian/patches/0004-sample-util-fix-iteration-loop-when-adjusting-volum.patch
@@ -0,0 +1,40 @@
+From 69eddaa7b86790a1d6b4fdb49d222b2930a6dbc0 Mon Sep 17 00:00:00 2001
+From: Lennart Poettering <lennart@poettering.net>
+Date: Fri, 1 May 2009 04:14:40 +0200
+Subject: [PATCH] sample-util: fix iteration loop when adjusting volume of s24 samples
+
+---
+ src/pulsecore/sample-util.c | 8 ++++----
+ 1 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/src/pulsecore/sample-util.c b/src/pulsecore/sample-util.c
+index 3a9b384..a3e490b 100644
+--- a/src/pulsecore/sample-util.c
++++ b/src/pulsecore/sample-util.c
+@@ -831,9 +831,9 @@ void pa_volume_memchunk(
+
+ calc_linear_integer_volume(linear, volume);
+
+- e = (uint8_t*) ptr + c->length/3;
++ e = (uint8_t*) ptr + c->length;
+
+- for (channel = 0, d = ptr; d < e; d++) {
++ for (channel = 0, d = ptr; d < e; d += 3) {
+ int64_t t;
+
+ t = (int64_t)((int32_t) (PA_READ24NE(d) << 8));
+@@ -854,9 +854,9 @@ void pa_volume_memchunk(
+
+ calc_linear_integer_volume(linear, volume);
+
+- e = (uint8_t*) ptr + c->length/3;
++ e = (uint8_t*) ptr + c->length;
+
+- for (channel = 0, d = ptr; d < e; d++) {
++ for (channel = 0, d = ptr; d < e; d += 3) {
+ int64_t t;
+
+ t = (int64_t)((int32_t) (PA_READ24RE(d) << 8));
+--
+1.5.6.3
+