From: Anthony Minessale Date: Fri, 5 Jan 2018 04:12:57 +0000 (-0600) Subject: FS-10871: [mod_conference] Zoomed layouts do not auto-center in mod_conference #resolve X-Git-Tag: v1.8.1~3^2~166 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16a31c4be5465a17d44918e42f32ae917742a2b0;p=thirdparty%2Ffreeswitch.git FS-10871: [mod_conference] Zoomed layouts do not auto-center in mod_conference #resolve --- diff --git a/src/mod/applications/mod_conference/conference_video.c b/src/mod/applications/mod_conference/conference_video.c index e66a6dd689..2fab1a01a3 100644 --- a/src/mod/applications/mod_conference/conference_video.c +++ b/src/mod/applications/mod_conference/conference_video.c @@ -743,7 +743,7 @@ void conference_video_scale_and_patch(mcu_layer_t *layer, switch_image_t *ximg, } else { crop_x = use_geometry->x; } - } else if (screen_aspect > img_aspect) { + } else if (screen_aspect < img_aspect) { crop_x = img->d_w / 4; } @@ -753,7 +753,7 @@ void conference_video_scale_and_patch(mcu_layer_t *layer, switch_image_t *ximg, } else { crop_y = use_geometry->y; } - } else if (screen_aspect < img_aspect) { + } else if (screen_aspect > img_aspect) { crop_y = img->d_h / 4; }