mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 08:48:39 +09:00
19 lines
781 B
Diff
19 lines
781 B
Diff
diff --git a/media/libspeex_resampler/src/resample.c b/media/libspeex_resampler/src/resample.c
|
|
--- a/media/libspeex_resampler/src/resample.c
|
|
+++ b/media/libspeex_resampler/src/resample.c
|
|
@@ -1145,12 +1145,13 @@
|
|
|
|
if (old_den > 0)
|
|
{
|
|
for (i=0;i<st->nb_channels;i++)
|
|
{
|
|
- if (multiply_frac(&st->samp_frac_num[i],st->samp_frac_num[i],st->den_rate,old_den) != RESAMPLER_ERR_SUCCESS)
|
|
- return RESAMPLER_ERR_OVERFLOW;
|
|
+ if (multiply_frac(&st->samp_frac_num[i],st->samp_frac_num[i],st->den_rate,old_den) != RESAMPLER_ERR_SUCCESS) {
|
|
+ st->samp_frac_num[i] = st->den_rate-1;
|
|
+ }
|
|
/* Safety net */
|
|
if (st->samp_frac_num[i] >= st->den_rate)
|
|
st->samp_frac_num[i] = st->den_rate-1;
|
|
}
|
|
}
|