mirror of
https://github.com/mpv-player/mpv
synced 2024-12-22 14:52:43 +00:00
af: fix behavior with pathologic filter chains
Some filter chains require a huge number of auto-inserted conversion filters. There is an overly stupid safeguard against infinite filter insertions, which counts the number of conversion filters inserted. This triggered accidentally in this case. Fix by resetting this counter after a non-conversion filter was successfully configured.
This commit is contained in:
parent
daf32e2d2d
commit
459124f66f
@ -519,6 +519,8 @@ static int af_reinit(struct af_stream *s)
|
||||
af->info->name, rv);
|
||||
goto error;
|
||||
}
|
||||
if (af && !af->auto_inserted)
|
||||
retry = 0;
|
||||
}
|
||||
|
||||
/* Set previously unset fields in s->output to those of the filter chain
|
||||
|
Loading…
Reference in New Issue
Block a user