[vlc-devel] [PATCH 02/12] soxr: requires a valid physical channel layout
Thomas Guillem
thomas at gllm.fr
Fri Jul 7 15:39:49 CEST 2017
---
modules/audio_filter/resampler/soxr.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/audio_filter/resampler/soxr.c b/modules/audio_filter/resampler/soxr.c
index 17cdcb2c58..c2195cf247 100644
--- a/modules/audio_filter/resampler/soxr.c
+++ b/modules/audio_filter/resampler/soxr.c
@@ -124,7 +124,8 @@ Open( vlc_object_t *p_obj, bool b_change_ratio )
if( p_filter->fmt_in.audio.i_physical_channels
!= 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_out.audio.i_original_channels
+ || p_filter->fmt_in.audio.i_physical_channels == 0 )
return VLC_EGENERIC;
/* Get SoXR input/output format */
--
2.11.0
More information about the vlc-devel
mailing list