projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b1f6f5
)
scaletempo: Explicitely cast to signed integers to fix a segfault
author
Maximilian Högner
<pbmaxi@hoegners.de>
Sun, 14 Jun 2009 18:00:51 +0000
(20:00 +0200)
committer
Tim-Philipp Müller
<tim@centricular.net>
Fri, 14 Dec 2012 13:16:16 +0000
(13:16 +0000)
Fixes bug #585660.
gst/audiofx/gstscaletempo.c
patch
|
blob
|
history
diff --git
a/gst/audiofx/gstscaletempo.c
b/gst/audiofx/gstscaletempo.c
index
ad3b949
..
ed25d13
100644
(file)
--- a/
gst/audiofx/gstscaletempo.c
+++ b/
gst/audiofx/gstscaletempo.c
@@
-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];