vlc-video: Set channel limit to 8 instead of 2
17c069e1d02049b changed to add support for surround sound, but the limit should really just be 8 channels as pointed out by tt
This commit is contained in:
parent
5f5355a813
commit
3e4e8d2fd0
@ -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 &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user