mirror of https://github.com/mpv-player/mpv
48f9431151
af_reinit() is responsible for inserting automatic conversion filters for channel remixing, format conversion, and resampling. We don't require that a single filter can do all these (even though af_lavrresample does nearly all of this, sometimes af_format has to be used instead for format conversions). This makes setting up the chain more complicated, and a way is needed to prevent endless appending of conversion filters if a conversion is not possible. Until now, this used a stupidly simple yet robust static retry limit to detect failure. This is perfectly fine, and the limit (20) was good enough to handle about ~5 filters. But with more filters, and if each filter requires 3 additional conversion filters, this would fail. So raise the limit to 4 retries per filter. This is still stupidly simple and robust, but won't arbitrarily fail if the filter count is too large. |
||
---|---|---|
.. | ||
af.c | ||
af.h | ||
af_bs2b.c | ||
af_center.c | ||
af_channels.c | ||
af_delay.c | ||
af_drc.c | ||
af_dummy.c | ||
af_equalizer.c | ||
af_export.c | ||
af_extrastereo.c | ||
af_force.c | ||
af_format.c | ||
af_hrtf.c | ||
af_hrtf.h | ||
af_karaoke.c | ||
af_ladspa.c | ||
af_lavcac3enc.c | ||
af_lavrresample.c | ||
af_pan.c | ||
af_scaletempo.c | ||
af_sinesuppress.c | ||
af_sub.c | ||
af_surround.c | ||
af_sweep.c | ||
af_tools.c | ||
af_volume.c | ||
control.h | ||
dsp.h | ||
equalizer.h | ||
filter.c | ||
filter.h | ||
window.c | ||
window.h |