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->fmt_out.audio = p_dec->fmt_in.audio;
p_dec->fmt_out.audio.i_format = p_dec->fmt_out.i_codec;
if (p_dec->fmt_out.audio.i_channels == 0
|| decoder_UpdateAudioFormat(p_dec))
if (decoder_UpdateAudioFormat(p_dec))
{
es_format_Init(&p_dec->fmt_out, UNKNOWN_ES, 0);
return VLC_EGENERIC;
......
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