summaryrefslogtreecommitdiff
path: root/gst/level
diff options
context:
space:
mode:
authorStefan Sauer <ensonic@users.sf.net>2015-08-26 23:16:46 +0200
committerStefan Sauer <ensonic@users.sf.net>2015-08-27 10:16:38 +0200
commit6a8194e1219531d00554d263cfdb0cc3e7b302d6 (patch)
treefc48b751fb70ee5d5f687322f8fca90acf510353 /gst/level
parentcac239ab89db5c37b59f078c734b2f8e5298c389 (diff)
level: fix level calculations for mutliple channels
Diffstat (limited to 'gst/level')
-rw-r--r--gst/level/gstlevel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/level/gstlevel.c b/gst/level/gstlevel.c
index 1141db660..a8e41f0a9 100644
--- a/gst/level/gstlevel.c
+++ b/gst/level/gstlevel.c
@@ -701,7 +701,7 @@ gst_level_transform_ip (GstBaseTransform * trans, GstBuffer * in)
filter->decay_peak_age[i] = G_GINT64_CONSTANT (0);
}
}
- in_data += block_size * bps;
+ in_data += block_size * bps * channels;
filter->num_frames += block_size;
num_frames -= block_size;