diff options
author | Maximilian Högner <pbmaxi@hoegners.de> | 2009-06-14 20:00:51 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-06-19 11:02:00 +0200 |
commit | d45e804d5a185291f7ca389bea2badd8569eb323 (patch) | |
tree | 9f09d433c812444b64eb68f93abbc5f2e629e045 /gst | |
parent | e4730e205ff6f3686ba60a939bb03d652eb4e473 (diff) | |
download | gst-plugins-bad-d45e804d5a185291f7ca389bea2badd8569eb323.tar.gz gst-plugins-bad-d45e804d5a185291f7ca389bea2badd8569eb323.tar.bz2 gst-plugins-bad-d45e804d5a185291f7ca389bea2badd8569eb323.zip |
scaletempo: Explicitely cast to signed integers to fix a segfault
Fixes bug #585660.
Diffstat (limited to 'gst')
-rw-r--r-- | gst/scaletempo/gstscaletempo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/scaletempo/gstscaletempo.c b/gst/scaletempo/gstscaletempo.c index ad3b949a..ed25d132 100644 --- a/gst/scaletempo/gstscaletempo.c +++ b/gst/scaletempo/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]; |