diff options
Diffstat (limited to 'audio')
-rw-r--r-- | audio/out/ao_null.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/audio/out/ao_null.c b/audio/out/ao_null.c index 29d88d4670..3880ee8aa4 100644 --- a/audio/out/ao_null.c +++ b/audio/out/ao_null.c @@ -58,6 +58,7 @@ struct priv { int outburst; // samples struct m_channels channel_layouts; + int format; }; static void drain(struct ao *ao) @@ -88,6 +89,9 @@ static int init(struct ao *ao) { struct priv *priv = ao->priv; + if (priv->format) + ao->format = priv->format; + ao->untimed = priv->untimed; struct mp_chmap_sel sel = {.tmp = ao}; @@ -241,6 +245,7 @@ const struct ao_driver audio_out_null = { OPT_FLAG("broken-eof", broken_eof, 0), OPT_FLAG("broken-delay", broken_delay, 0), OPT_CHANNELS("channel-layouts", channel_layouts, 0), + OPT_AUDIOFORMAT("format", format, 0), {0} }, .options_prefix = "ao-null", |