Commit d30d02fe authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* Don't use the bandlimited resampler for downsampling (skew resampling for...

* Don't use the bandlimited resampler for downsampling (skew resampling for instance). The resampler doesn't have a low pass filter? This closes #256
 - on a side note, it also seems to fix the stack corruption (resulting in deadlock) issues i was having with audio output that was being resampled by auhal.
parent b013ed31
......@@ -124,6 +124,12 @@ static int Create( vlc_object_t *p_this )
/* Calculate worst case for the length of the filter wing */
d_factor = (double)p_filter->output.i_rate
/ p_filter->input.i_rate;
if( d_factor < (double)1.0 )
{
return VLC_EGENERIC;
}
i_filter_wing = ((SMALL_FILTER_NMULT + 1)/2.0)
* __MAX(1.0, 1.0/d_factor) + 10;
p_filter->p_sys->i_buf_size = aout_FormatNbChannels( &p_filter->input ) *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment