[WIP]: Check RDP sound format value before use.
This commit is contained in:
parent
f3f8be0591
commit
0e2e3d20ae
@ -250,7 +250,7 @@ void guac_rdpsnd_wave_info_handler(guac_rdp_common_svc* svc,
|
|||||||
rdpsnd->next_pdu_is_wave = TRUE;
|
rdpsnd->next_pdu_is_wave = TRUE;
|
||||||
|
|
||||||
/* Reset audio stream if format has changed */
|
/* Reset audio stream if format has changed */
|
||||||
if (audio != NULL)
|
if (audio != NULL && format < GUAC_RDP_MAX_FORMATS)
|
||||||
guac_audio_stream_reset(audio, NULL,
|
guac_audio_stream_reset(audio, NULL,
|
||||||
rdpsnd->formats[format].rate,
|
rdpsnd->formats[format].rate,
|
||||||
rdpsnd->formats[format].channels,
|
rdpsnd->formats[format].channels,
|
||||||
|
Loading…
Reference in New Issue
Block a user