Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 325238 Details for
Bug 436528
media-libs/speex: Resampler stops in the middle of run with multiple channels
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
resample_save_in_len_for_multiple_channels.patch
resample_save_in_len_for_multiple_channels.patch (text/plain), 1.39 KB, created by
Franz Schrober
on 2012-09-28 17:34:09 UTC
(
hide
)
Description:
resample_save_in_len_for_multiple_channels.patch
Filename:
MIME Type:
Creator:
Franz Schrober
Created:
2012-09-28 17:34:09 UTC
Size:
1.39 KB
patch
obsolete
>diff --git a/libspeex/resample.c b/libspeex/resample.c >index 7b5a308..84f1d7d 100644 >--- a/libspeex/resample.c >+++ b/libspeex/resample.c >@@ -960,13 +960,15 @@ EXPORT int speex_resampler_process_interleaved_float(SpeexResamplerState *st, co > { > spx_uint32_t i; > int istride_save, ostride_save; >- spx_uint32_t bak_len = *out_len; >+ spx_uint32_t bak_out_len = *out_len; >+ spx_uint32_t bak_in_len = *in_len; > istride_save = st->in_stride; > ostride_save = st->out_stride; > st->in_stride = st->out_stride = st->nb_channels; > for (i=0;i<st->nb_channels;i++) > { >- *out_len = bak_len; >+ *out_len = bak_out_len; >+ *in_len = bak_in_len; > if (in != NULL) > speex_resampler_process_float(st, i, in+i, in_len, out+i, out_len); > else >@@ -981,13 +983,15 @@ EXPORT int speex_resampler_process_interleaved_int(SpeexResamplerState *st, cons > { > spx_uint32_t i; > int istride_save, ostride_save; >- spx_uint32_t bak_len = *out_len; >+ spx_uint32_t bak_out_len = *out_len; >+ spx_uint32_t bak_in_len = *in_len; > istride_save = st->in_stride; > ostride_save = st->out_stride; > st->in_stride = st->out_stride = st->nb_channels; > for (i=0;i<st->nb_channels;i++) > { >- *out_len = bak_len; >+ *out_len = bak_out_len; >+ *in_len = bak_in_len; > if (in != NULL) > speex_resampler_process_int(st, i, in+i, in_len, out+i, out_len); > else
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 436528
:
325236
| 325238