mirror of
https://code.videolan.org/videolan/vlc
synced 2024-09-08 11:26:59 +02:00
* 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.
This commit is contained in:
parent
b013ed3110
commit
d30d02fe83
@ -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 ) *
|
||||
|
Loading…
Reference in New Issue
Block a user