[vlc-devel] [PATCH 01/12] bandlimited: requires a valid physical channel layout
Thomas Guillem
thomas at gllm.fr
Fri Jul 7 15:39:48 CEST 2017
---
modules/audio_filter/resampler/bandlimited.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/audio_filter/resampler/bandlimited.c b/modules/audio_filter/resampler/bandlimited.c
index d25dc45bd5..91841b179e 100644
--- a/modules/audio_filter/resampler/bandlimited.c
+++ b/modules/audio_filter/resampler/bandlimited.c
@@ -295,7 +295,8 @@ static int OpenFilter( vlc_object_t *p_this )
!= p_filter->fmt_out.audio.i_physical_channels
|| p_filter->fmt_in.audio.i_original_channels
!= p_filter->fmt_out.audio.i_original_channels
- || p_filter->fmt_in.audio.i_format != VLC_CODEC_FL32 )
+ || p_filter->fmt_in.audio.i_format != VLC_CODEC_FL32
+ || p_filter->fmt_in.audio.i_physical_channels == 0 )
{
return VLC_EGENERIC;
}
--
2.11.0
More information about the vlc-devel
mailing list