Commit b21b46a0 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

level: Use the correct number of samples to iterate over the input array

Fixes invalid memory accesses and accesses to uninitialised data.
parent bd65c36c
......@@ -677,7 +677,7 @@ gst_level_transform_ip (GstBaseTransform * trans, GstBuffer * in)
filter->decay_peak_age[i] = G_GINT64_CONSTANT (0);
}
}
in_data += ((block_int_size * bps) - bps);
in_data += block_size * bps;
filter->num_frames += block_size;
num_frames -= block_size;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment