Merge pull request #266 from dragos-oancea/conf_passthrough_fix

[mod_conference] fix overflow (video mode == passthrough)
This commit is contained in:
Andrey Volk 2020-01-30 23:31:00 +04:00 committed by GitHub
commit b067a7ccbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) {