[vlc-devel] [PATCH 03/12] speex: requires a valid physical channel layout
Thomas Guillem
thomas at gllm.fr
Fri Jul 7 15:39:50 CEST 2017
---
modules/audio_filter/resampler/speex.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/audio_filter/resampler/speex.c b/modules/audio_filter/resampler/speex.c
index ee37ea95d9..bdb32e4240 100644
--- a/modules/audio_filter/resampler/speex.c
+++ b/modules/audio_filter/resampler/speex.c
@@ -68,7 +68,8 @@ static int OpenResampler (vlc_object_t *obj)
|| filter->fmt_in.audio.i_physical_channels
!= filter->fmt_out.audio.i_physical_channels
|| filter->fmt_in.audio.i_original_channels
- != filter->fmt_out.audio.i_original_channels)
+ != filter->fmt_out.audio.i_original_channels
+ || filter->fmt_in.audio.i_physical_channels == 0 )
return VLC_EGENERIC;
switch (filter->fmt_in.audio.i_format)
--
2.11.0
More information about the vlc-devel
mailing list