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.
master
jp9000 2016-07-20 15:12:04 -07:00
parent ac4bd2aa80
commit 67ac11f40e
1 changed files with 1 additions and 1 deletions

View File

@ -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 */