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
parent
ac4bd2aa80
commit
67ac11f40e
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue