diff options
Diffstat (limited to 'gst')
-rw-r--r-- | gst/level/gstlevel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/level/gstlevel.c b/gst/level/gstlevel.c index bc1c42e1..6ff849fc 100644 --- a/gst/level/gstlevel.c +++ b/gst/level/gstlevel.c @@ -514,12 +514,13 @@ gst_level_transform_ip (GstBaseTransform * trans, GstBuffer * in) for (i = 0; i < filter->channels; ++i) { CS = 0.0; - filter->process (in_data + i, num_int_samples, filter->channels, &CS, + filter->process (in_data, num_int_samples, filter->channels, &CS, &filter->peak[i]); GST_LOG_OBJECT (filter, "channel %d, cumulative sum %f, peak %f, over %d samples/%d channels", i, CS, filter->peak[i], num_int_samples, filter->channels); filter->CS[i] += CS; + in_data += (filter->width / 8); } filter->num_frames += num_frames; |