Commit faeca22a authored by Cheng Sun's avatar Cheng Sun Committed by Jean-Baptiste Kempf

Fix mono audio filter condition check

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
(cherry picked from commit 0e874482db5c4b856e5a947c0159df0060cdb1bb)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent e62a3d30
...@@ -369,10 +369,10 @@ static int OpenFilter( vlc_object_t *p_this ) ...@@ -369,10 +369,10 @@ static int OpenFilter( vlc_object_t *p_this )
return VLC_EGENERIC; return VLC_EGENERIC;
} }
if( (p_filter->fmt_in.audio.i_format != p_filter->fmt_out.audio.i_format) && if( (p_filter->fmt_in.audio.i_format != p_filter->fmt_out.audio.i_format) ||
(p_filter->fmt_in.audio.i_rate != p_filter->fmt_out.audio.i_rate) && (p_filter->fmt_in.audio.i_rate != p_filter->fmt_out.audio.i_rate) ||
(p_filter->fmt_in.audio.i_format != VLC_CODEC_S16N) && (p_filter->fmt_in.audio.i_format != VLC_CODEC_S16N) ||
(p_filter->fmt_out.audio.i_format != VLC_CODEC_S16N) && (p_filter->fmt_out.audio.i_format != VLC_CODEC_S16N) ||
(p_filter->fmt_in.audio.i_bitspersample != (p_filter->fmt_in.audio.i_bitspersample !=
p_filter->fmt_out.audio.i_bitspersample)) p_filter->fmt_out.audio.i_bitspersample))
{ {
......
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