From 67ac11f40e49e4616bb9ebab54137a11d77196cc Mon Sep 17 00:00:00 2001 From: jp9000 Date: Wed, 20 Jul 2016 15:12:04 -0700 Subject: [PATCH] vlc-video: Fix downmixing issue libVLC doesn't seem to provide full speaker configuration info, so when downmixing audio from a file that had more than 2 channels, the audio would sound wrong. This change makes it so that libVLC does the downmixing to stereo rather than libobs, just due to that lack of speaker configuration info. --- plugins/vlc-video/vlc-video-source.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/vlc-video/vlc-video-source.c b/plugins/vlc-video/vlc-video-source.c index 98de96cd6..224e558b1 100644 --- a/plugins/vlc-video/vlc-video-source.c +++ b/plugins/vlc-video/vlc-video-source.c @@ -356,7 +356,7 @@ 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 == 7 || *channels > 8) + if (*channels > 2) *channels = 2; /* don't free audio data if the data is the same format */