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

This commit is contained in:
Anthony Minessale 2015-02-13 16:40:09 -06:00 committed by Michael Jerris
parent eca9107498
commit ae68efd48e
1 changed files with 3 additions and 0 deletions

View File

@ -87,6 +87,9 @@ SWITCH_DECLARE(void) switch_img_patch(switch_image_t *IMG, switch_image_t *img,
{
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);