]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10941: [mod_conference] Segfault SIGFPE, Arithmetic exception in mod_conference...
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 8 Feb 2018 17:04:11 +0000 (11:04 -0600)
committerMuteesa Fred <muteesafred@hotmail.com>
Tue, 24 Jul 2018 07:21:48 +0000 (07:21 +0000)
src/switch_core_media.c

index 6d4b780df33efb3988c8977e00da053e4f29d6f6..e15dad3e0999a1f5a4d09f943b1eef88e109dc4d 100644 (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;