mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
scaletempo: Explicitely cast to signed integers to fix a segfault
Fixes bug #585660.
This commit is contained in:
parent
e4730e205f
commit
d45e804d5a
1 changed files with 1 additions and 1 deletions
|
@ -230,7 +230,7 @@ best_overlap_offset_s16 (GstScaletempo * scaletempo)
|
|||
ppc = p->buf_pre_corr;
|
||||
ppc += p->samples_overlap - p->samples_per_frame;
|
||||
ps += p->samples_overlap - p->samples_per_frame;
|
||||
i = -(p->samples_overlap - p->samples_per_frame);
|
||||
i = -((glong) p->samples_overlap - (glong) p->samples_per_frame);
|
||||
do {
|
||||
corr += ppc[i + 0] * ps[i + 0];
|
||||
corr += ppc[i + 1] * ps[i + 1];
|
||||
|
|
Loading…
Reference in a new issue