diff options
author | Stefan Sauer <ensonic@users.sf.net> | 2015-08-26 23:16:46 +0200 |
---|---|---|
committer | Stefan Sauer <ensonic@users.sf.net> | 2015-08-27 10:16:38 +0200 |
commit | 6a8194e1219531d00554d263cfdb0cc3e7b302d6 (patch) | |
tree | fc48b751fb70ee5d5f687322f8fca90acf510353 /gst/level | |
parent | cac239ab89db5c37b59f078c734b2f8e5298c389 (diff) |
level: fix level calculations for mutliple channels
This was broken with 7b90bf32150897a141a29a12ecab555d8c5b7fab.
Diffstat (limited to 'gst/level')
-rw-r--r-- | gst/level/gstlevel.c | 2 |
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; |