[vlc-devel] [PATCH 05/12] src: requires a valid physical channel layout

Thomas Guillem thomas at gllm.fr
Fri Jul 7 15:39:52 CEST 2017


---
 modules/audio_filter/resampler/src.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/audio_filter/resampler/src.c b/modules/audio_filter/resampler/src.c
index 7a460f05f2..8635baadb2 100644
--- a/modules/audio_filter/resampler/src.c
+++ b/modules/audio_filter/resampler/src.c
@@ -93,7 +93,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;
 
     int type = var_InheritInteger (obj, "src-converter-type");
-- 
2.11.0



More information about the vlc-devel mailing list