Commit db27e3af authored by Thomas Guillem's avatar Thomas Guillem

spdif: aouts can handle an invalid channel count

This fixes audio passthrough when the input is not correctly packetized.

fixes #18269
parent 2f23590d
......@@ -78,8 +78,7 @@ OpenDecoder(vlc_object_t *p_this)
p_dec-> = p_dec->;
p_dec-> = p_dec->fmt_out.i_codec;
if (p_dec-> == 0
|| decoder_UpdateAudioFormat(p_dec))
if (decoder_UpdateAudioFormat(p_dec))
es_format_Init(&p_dec->fmt_out, UNKNOWN_ES, 0);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment