af_lavcac3enc: detach on any passthrough format, not just ac3

This commit is contained in:
wm4 2014-04-16 00:30:34 +02:00
parent 3004661bf2
commit 6fcec75baa
1 changed files with 1 additions and 1 deletions

View File

@ -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);