From 3e4e8d2fd001a7d5cd47a2f8ae05f3ee12127d66 Mon Sep 17 00:00:00 2001 From: Jim Date: Sat, 29 Jan 2022 15:28:36 -0800 Subject: [PATCH] vlc-video: Set channel limit to 8 instead of 2 17c069e1d02049b changed to add support for surround sound, but the limit should really just be 8 channels as pointed out by tt --- plugins/vlc-video/vlc-video-source.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/vlc-video/vlc-video-source.c b/plugins/vlc-video/vlc-video-source.c index df30288b9..bf5d698d8 100644 --- a/plugins/vlc-video/vlc-video-source.c +++ b/plugins/vlc-video/vlc-video-source.c @@ -460,6 +460,8 @@ static int vlcs_audio_setup(void **p_data, char *format, unsigned *rate, enum audio_format new_audio_format; new_audio_format = convert_vlc_audio_format(format); + if (*channels > 8) + *channels = 8; /* don't free audio data if the data is the same format */ if (c->audio.format == new_audio_format &&