mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
level: Use the correct number of samples to iterate over the input array
Fixes invalid memory accesses and accesses to uninitialised data.
This commit is contained in:
parent
bd65c36cbb
commit
b21b46a07a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue