From ac6092e6dbfc6d87ee67c0da7adc6a89ad1ebe12 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 24 May 2017 14:18:51 -0500 Subject: [PATCH] FS-10340: [mod_conference] Zoom layers not working right when input image is same height as the layer #resolve --- src/mod/applications/mod_conference/conference_video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/applications/mod_conference/conference_video.c b/src/mod/applications/mod_conference/conference_video.c index c31fd89b65..128cba5055 100644 --- a/src/mod/applications/mod_conference/conference_video.c +++ b/src/mod/applications/mod_conference/conference_video.c @@ -641,8 +641,8 @@ void conference_video_scale_and_patch(mcu_layer_t *layer, switch_image_t *ximg, } if (scale == 1) { - crop_w = img->d_w; - crop_h = img->d_h; + crop_w = layer->screen_w; + crop_h = layer->screen_h; } else { crop_w = (uint32_t)((double)layer->screen_w / scale); crop_h = (uint32_t)((double)layer->screen_h / scale);