[vlc-devel] [PATCH 04/12] ugly: requires a valid physical channel layout

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


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

diff --git a/modules/audio_filter/resampler/ugly.c b/modules/audio_filter/resampler/ugly.c
index d7a9657368..7b2dbfa806 100644
--- a/modules/audio_filter/resampler/ugly.c
+++ b/modules/audio_filter/resampler/ugly.c
@@ -78,7 +78,8 @@ static int CreateResampler( 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
-     || !AOUT_FMT_LINEAR( &p_filter->fmt_in.audio ) )
+     || !AOUT_FMT_LINEAR( &p_filter->fmt_in.audio )
+     || p_filter->fmt_in.audio.i_physical_channels == 0 )
         return VLC_EGENERIC;
 
     p_filter->pf_audio_filter = DoWork;
-- 
2.11.0



More information about the vlc-devel mailing list