[mod_conference] fix overflow (video mode == passthrough)

This commit is contained in:
Dragos Oancea 2020-01-30 18:04:51 +00:00
parent 0ec6ec10ae
commit a909ca5e80
1 changed files with 1 additions and 1 deletions

View File

@ -4834,7 +4834,7 @@ void conference_video_write_frame(conference_obj_t *conference, conference_membe
{
conference_member_t *imember;
int want_refresh = 0;
unsigned char buf[SWITCH_RTP_MAX_BUF_LEN] = "";
unsigned char buf[sizeof(switch_rtp_packet_t)] = "";
switch_frame_t tmp_frame = { 0 };
if (switch_test_flag(vid_frame, SFF_CNG) || !vid_frame->packet) {