mirror of https://github.com/mpv-player/mpv
af_lavcac3enc: detach on any passthrough format, not just ac3
This commit is contained in:
parent
3004661bf2
commit
6fcec75baa
|
@ -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