mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-03 03:50:10 +00:00
FS-7500: fix seg
This commit is contained in:
parent
704c036593
commit
f4fad4e756
@ -1072,14 +1072,13 @@ SWITCH_DECLARE(switch_status_t) switch_img_fit(switch_image_t **srcP, int width,
|
|||||||
switch_assert(srcP);
|
switch_assert(srcP);
|
||||||
switch_assert(width && height);
|
switch_assert(width && height);
|
||||||
|
|
||||||
img_aspect = (double) src->d_w / src->d_h;
|
|
||||||
|
|
||||||
src = *srcP;
|
src = *srcP;
|
||||||
|
|
||||||
if (!src || (src->d_w <= width && src->d_h <= height)) {
|
if (!src || (src->d_w <= width && src->d_h <= height)) {
|
||||||
return SWITCH_STATUS_SUCCESS;
|
return SWITCH_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
img_aspect = (double) src->d_w / src->d_h;
|
||||||
new_w = src->d_w;
|
new_w = src->d_w;
|
||||||
new_h = src->d_h;
|
new_h = src->d_h;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user