[vlc-commits] Revert "soxr: fix output len calculation"
Thomas Guillem
git at videolan.org
Tue Mar 5 18:38:56 CET 2019
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Mar 5 18:34:22 2019 +0100| [c5c4739b8b17251e4ff49a710e425d6514600fe5] | committer: Thomas Guillem
Revert "soxr: fix output len calculation"
This reverts commit 2b3b92cdf2101ff1458f26446528d4621f6b7839.
The calculated output len with a rate < 1 was too small.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c5c4739b8b17251e4ff49a710e425d6514600fe5
---
modules/audio_filter/resampler/soxr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/audio_filter/resampler/soxr.c b/modules/audio_filter/resampler/soxr.c
index 7d7e31fd91..7babe2aaee 100644
--- a/modules/audio_filter/resampler/soxr.c
+++ b/modules/audio_filter/resampler/soxr.c
@@ -302,7 +302,7 @@ Resample( filter_t *p_filter, block_t *p_in )
block_t *p_flushed_out = NULL, *p_out = NULL;
const double f_ratio = p_filter->fmt_out.audio.i_rate
/ (double) p_filter->fmt_in.audio.i_rate;
- const size_t i_olen = SoXR_GetOutLen( p_in->i_nb_samples, 1.0f );
+ const size_t i_olen = SoXR_GetOutLen( p_in->i_nb_samples, f_ratio );
if( f_ratio != p_sys->f_fixed_ratio )
{
More information about the vlc-commits
mailing list