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 &&