mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-02 03:24:54 +00:00
FS-9742
This commit is contained in:
parent
b4e0592e84
commit
a3a39f3305
@ -441,8 +441,10 @@ void conference_video_scale_and_patch(mcu_layer_t *layer, switch_image_t *ximg,
|
|||||||
|
|
||||||
if (cropsize < 1) {
|
if (cropsize < 1) {
|
||||||
cropsize = 1;
|
cropsize = 1;
|
||||||
|
} else if (cropsize > img->d_w - new_w) {
|
||||||
|
cropsize = img->d_w - new_w;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cropsize > 0) {
|
if (cropsize > 0) {
|
||||||
switch_img_set_rect(img, cropsize, 0, new_w, new_h);
|
switch_img_set_rect(img, cropsize, 0, new_w, new_h);
|
||||||
img_aspect = (double) img->d_w / img->d_h;
|
img_aspect = (double) img->d_w / img->d_h;
|
||||||
@ -466,6 +468,8 @@ void conference_video_scale_and_patch(mcu_layer_t *layer, switch_image_t *ximg,
|
|||||||
|
|
||||||
if (cropsize < 1) {
|
if (cropsize < 1) {
|
||||||
cropsize = 1;
|
cropsize = 1;
|
||||||
|
} else if (cropsize > img->d_h - new_h) {
|
||||||
|
cropsize = img->d_h - new_h;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cropsize > 0) {
|
if (cropsize > 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user