FS-10941: [mod_conference] Segfault SIGFPE, Arithmetic exception in mod_conference #resolve

This commit is contained in:
Anthony Minessale 2018-02-08 11:04:11 -06:00 committed by Muteesa Fred
parent b3ff29eb5c
commit 9fcbf5d1c0
1 changed files with 2 additions and 2 deletions

View File

@ -6600,11 +6600,11 @@ SWITCH_DECLARE(void) switch_core_session_write_blank_video(switch_core_session_t
switch_color_set_rgb(&bgcolor, "#000000");
switch_img_fill(blank_img, 0, 0, blank_img->d_w, blank_img->d_h, &bgcolor);
if (fps < 15) fps = 15;
frame_ms = (uint32_t) 1000 / fps;
if (frame_ms <= 0) frame_ms = 66;
frames = (uint32_t) ms / frame_ms;
switch_core_media_gen_key_frame(session);
for (i = 0; i < frames; i++) {
fr.img = blank_img;