0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 13:08:50 +02:00

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.
This commit is contained in:
jp9000 2016-07-20 15:12:04 -07:00
parent ac4bd2aa80
commit 67ac11f40e

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