mirror of
https://github.com/mpv-player/mpv
synced 2025-02-22 07:46:55 +00:00
af_lavcac3enc: detach on any passthrough format, not just ac3
This commit is contained in:
parent
848d7979e5
commit
6598b55c35
@ -74,7 +74,7 @@ static int control(struct af_instance *af, int cmd, void *arg)
|
||||
struct mp_audio *in = arg;
|
||||
struct mp_audio orig_in = *in;
|
||||
|
||||
if (AF_FORMAT_IS_AC3(in->format) || in->nch < s->cfg_min_channel_num)
|
||||
if (AF_FORMAT_IS_SPECIAL(in->format) || in->nch < s->cfg_min_channel_num)
|
||||
return AF_DETACH;
|
||||
|
||||
mp_audio_set_format(in, s->in_sampleformat);
|
||||
|
Loading…
Reference in New Issue
Block a user