提交 646c8fb6 authored 作者: Anthony Minessale's avatar Anthony Minessale

FS-7500: assert on neg coordinates causes a seg on free if they are used

上级 53f9a975
...@@ -87,6 +87,9 @@ SWITCH_DECLARE(void) switch_img_patch(switch_image_t *IMG, switch_image_t *img, ...@@ -87,6 +87,9 @@ SWITCH_DECLARE(void) switch_img_patch(switch_image_t *IMG, switch_image_t *img,
{ {
int i, len, max_h; int i, len, max_h;
switch_assert(x > -1);
switch_assert(y > -1);
switch_assert(img->fmt == SWITCH_IMG_FMT_I420); switch_assert(img->fmt == SWITCH_IMG_FMT_I420);
switch_assert(IMG->fmt == SWITCH_IMG_FMT_I420); switch_assert(IMG->fmt == SWITCH_IMG_FMT_I420);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论